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 also has the first decimal floating-point unit integrated in silicon.
它还首次在芯片中集成了十进制浮点单元。
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,要尽可能晚的把它转化成浮点数。
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数据类型需要的存储空间通常要比浮点数据类型大得多。
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在小数点后面的几位不一致。
Floating point is a very similar concept, except that computers use binary rather than decimal as their base.
浮点是一个非常类似的概念,除了计算机使用二进制而不是十进制作为基础。
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.
它直接把小数点后面的数值丢弃掉了,因为,凭直觉,那些整型数和结果应该是一个浮点数据,但是我需要一个更精确的数值。
If you've never encountered an exact precision data type, the distinction between a decimal and floating-point type may be confusing.
如果从未遇到过准确精度数据类型,那么对算术类型和浮点类型可能有些迷惑。
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.
在大部分的编程语言中,包含了小数点的数字称之为浮点数,可以用它来表示数学中的实数。
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位双精度浮点二进制小数定义了二进制标准。
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表示作为输入。
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所示。
Floating-point instructions and decimal floating-point instructions.
浮点指令和十进制浮点指令。
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表示水平制表符,等等)。
Is Multiplying a decimal number where all results are full integers, considered Floating Point Math?
是一个十进制数,所有的结果都充分考虑整数乘法,浮点数学吗?
Real Programmers scorn floating point arithmetic. The decimal point was invented for pansy bedwetters who are unable to think big.
真正的程序员嘲笑浮点算法。小数点是为不会顺利思考的家伙发明的。
It consists of a floating-point literal or decimal integer followed by the lower-case letter I.
它有浮点表和十进制整数跟随小写的字母i。
Floating - point values are whole Numbers with a decimal portion.
浮点值是带有小数部分的整数。
The decimal module provides excellent facilities for doing decimal math, but it is somewhat more cumbersome to use than floating-point.
十进制模块提供做小数数学优良的设施,但它比浮点较为繁琐的使用。
Editing floating-point values can result in minor inaccuracies because of decimal-to-binary conversion of fractional components.
编辑浮点值时,由于要将小数部分从十进制转换为二进制,因此所得的结果可能存在微小误差。
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 conversion from binary floating-point representation to decimal representation can be lossy, depending on your conversion Settings.
二进制浮点表示的转换十进制表示可以损耗,根据您的转换设置。
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,可选的有符号整数指数,以及可选的类型后缀组成。
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.
将指定的双精度浮点数的值转换为等效的单精度浮点数。
Converts the value of the specified decimal number to an equivalent single-precision floating-point number.
将指定的双精度浮点数的值转换为等效的单精度浮点数。
应用推荐