Floating point is a very similar concept, except that computers use binary rather than decimal as their base.
浮点是一个非常类似的概念,除了计算机使用二进制而不是十进制作为基础。
We need to be accurate to two decimal places (e.g. in a simple accounting package), scale everything up by 100, and convert it back to floating point as late as possible.
我们处理小数的时候要精心些,比方说我们在做一个简单的统计程序时,要限制结果不能超过100,要尽可能晚的把它转化成浮点数。
Floating point and decimal Numbers are not nearly as well-behaved as integers, and you cannot assume that floating point calculations that "should" have integer or exact results actually do.
浮点数和小数不象整数一样“循规蹈矩”,不能假定浮点计算一定产生整型或精确的结果,虽然它们的确“应该”那样做。
It just throws the decimal point away and that's because, again, these are ints and the answer intuitively should be a floating point value, but I need to be more specific.
它直接把小数点后面的数值丢弃掉了,因为,凭直觉,那些整型数和结果应该是一个浮点数据,但是我需要一个更精确的数值。
It also has the first decimal floating-point unit integrated in silicon.
它还首次在芯片中集成了十进制浮点单元。
IEEE 754 represents floating point Numbers as base 2 decimal Numbers in scientific notation.
IEEE 754用科学记数法以底数为2的小数来表示浮点数。
In most programming languages, Numbers that include a decimal fraction are called floating-point Numbers, which are used to approximate real Numbers in mathematics.
在大部分的编程语言中,包含了小数点的数字称之为浮点数,可以用它来表示数学中的实数。
If you've never encountered an exact precision data type, the distinction between a decimal and floating-point type may be confusing.
如果从未遇到过准确精度数据类型,那么对算术类型和浮点类型可能有些迷惑。
These are based on the IEEE 754 standard, which defines a binary standard for 32-bit floating point and 64-bit double precision floating point binary-decimal Numbers.
它们都依据IEEE 754标准,该标准为32位浮点和64位双精度浮点二进制小数定义了二进制标准。
For floating-point Numbers, you place a decimal as the separator between the whole part of the number and the fraction.
对于浮点数,您将在整数部分和小数部分之间放置小数点。
The storage required for a DECIMAL data type is potentially much larger than it is for a normal floating-point data type.
DECIMAL数据类型需要的存储空间通常要比浮点数据类型大得多。
One takes a double-precision floating point as input, another takes an integer and a scale factor, and another takes a String representation of a decimal number.
其中一个构造函数以双精度浮点数作为输入,另一个以整数和换算因子作为输入,还有一个以小数的String表示作为输入。
Floating-point instructions and decimal floating-point instructions.
浮点指令和十进制浮点指令。
Derby provides support for real Numbers in several formats: single-precision floating-point, double-precision floating-point, and an exact representation decimal, as presented in Table 2.
Derby对实数提供了多种格式的支持:单精度浮点、双精度浮点以及准确的算术表示,如表2所示。
The issue with floating point comparisons is that of precisions—f1 and result*result start differing from a couple of places after the decimal point.
浮点比较的问题在于精度 —f1和result*result在小数点后面的几位不一致。
You can display output as octal, hex, decimal, floating point, ASCII with backslash escapes, or named characters (nl for newline, ht for horizontal TAB, etc.).
您可以将输出显示为八进制、十六进制、十进制、浮点数、包含反斜杠转义符的ASCII,或者指定的字符(nl表示换行、ht表示水平制表符,等等)。
Editing floating-point values can result in minor inaccuracies because of decimal-to-binary conversion of fractional components.
编辑浮点值时,由于要将小数部分从十进制转换为二进制,因此所得的结果可能存在微小误差。
浮点十进制FLDEC ?
You can also use a fixed-precision decimal type, or cast floating-point Numbers to a fixed-precision decimal type before you work with them.
您也可以使用固定精度的十进制类型,或者在使用浮点数之前将它们强制转换为固定精度的十进制类型。
The integer part, the optional decimal point and the optional fraction part form the significant part of the floating literal.
整数部分,可选的小数点,以及可选的小数部分组成浮点文字量的有效部分。
A floating literal consists of an integer part, a decimal point, a fraction part, ane or e, an optionally signed integer exponent, and an optional type suffix.
浮点文字量由整数部分,小数点,小数部分,e或e,可选的有符号整数指数,以及可选的类型后缀组成。
The conversion from binary floating-point representation to decimal representation can be lossy, depending on your conversion Settings.
二进制浮点表示的转换十进制表示可以损耗,根据您的转换设置。
Floating-point decimal values generally do not have an exact binary representation.
一般而言,十进位浮点数值并没有精确的二进位表示式。
Converts the value of the specified decimal number to an equivalent double-precision floating-point number.
将指定的单精度浮点数的值转换为等效的双精度浮点数。
Converts the value of the specified decimal number to an equivalent single-precision floating-point number.
将指定的双精度浮点数的值转换为等效的单精度浮点数。
It gives a new idea on programming, which is the conversion between binary floating number and decimal digit.
介绍了一种新型高速的二进制整数转化为十进制数的程序设计方法——分段处理。
It gives a new idea on programming, which is the conversion between binary floating number and decimal digit.
介绍了一种新型高速的二进制整数转化为十进制数的程序设计方法——分段处理。
应用推荐