The same is not true for floating-point numbers.
但浮点数则不是这样。
Note that floating-point multiplication doesn't have these issues.
注意浮点乘法没有这样的问题。
Floating-point instructions and decimal floating-point instructions.
浮点指令和十进制浮点指令。
It also has the first decimal floating-point unit integrated in silicon.
它还首次在芯片中集成了十进制浮点单元。
For example, the C programming language has integer and floating-point types.
例如,c编程语言具有整型和浮点类型。
SIGFPE - Arithmetic exception, integer divided by 0, or floating-point exception.
SIGFPE—算术异常、整数被零除或浮点异常。
These workloads heavily use either the floating-point units or the memory bandwidth.
这些工作负荷会占用大量的浮点单元或内存带宽。
There are differences in the definition of floating-point Numbers and long variable types.
浮点型数字和长变量类型的定义是有差异的。
Likewise, floating-point values are passed through the floating-point registers 1 through 13.
同理,浮点值是通过浮点寄存器1到13传递的。
Calculations that require strict floating-point semantics should be handled on the server side.
需要严格遵守浮点语义学的计算应当在服务器端处理。
Any floating-point operation like addition or multiplication is achieved in a few discrete steps.
任何浮点操作,例如加法和乘法,都可以通过几个步骤来实现。
The next two—float and double—represent floating-point numbers, again with different dynamic ranges.
随后的两种——float和double,代表了浮点型数,同样具有不同的动态范围。
The difference lies in the fact that floating-point data types used in computers can't hold every real number.
区别在于一个事实:计算机中使用的浮点数据类型无法包含每个实数。
If you want to force a floating-point result, be sure that at least one of the operands is a floating-point type.
如果要强制取得浮点结果,则必须确保操作数中至少有一个为浮点类型。
Like C, Go offers a handful of primitive types. The usual Boolean, integer and floating-point types are available.
像C语言一样,Go提供了一系列的基本类型,常见的布尔,整数和浮点数类型都具备。
Even under version 7.2, Vim does only floating-point arithmetic if one of the operands is explicitly floating-point.
即使对于版本7.2,如果其中一个运算对象被明确声明为浮点类型,那么Vim只支持浮点算术。
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数据类型需要的存储空间通常要比浮点数据类型大得多。
Regan speculated that this particular number is troublesome because it is the "largest subnormal double-precision floating-point number."
Regan推测这个特殊数字的麻烦之处在于它是“最大的次法线双精度浮点数”。
fdlibm: A C math library for machines that support IEEE 754 floating-point, is available from the Netlib mathematical software repository.
fdlibm :一个适用于支持IEEE 754浮点数的机器的Cmath库,可在 Netlib数学软件库中找到。
This technique can especially help in finding problems with floating-point values, conversion ratios, and lengths associated with data types.
这项技术特别有助于发现使用浮点值、转换率,以及与数据类型相关长度的问题。
However, you then need to account for the extra 1-bit in a normalized number, and then convert back to a floating-point number between 1 and 2.
不过,随后则需要考虑正常数字中多出的1位,然后再转换回范围在1到2之间的浮点数。
With the understanding you've developed thus far, you can now define the grammar for a floating-point number in C. the BNF is shown in Listing 4.
了解到目前为止所开发的内容之后,现在可以开始定义c风格的浮点数语法。清单4展示了BNF。
A more general synonym is the float type, which has an arbitrary floating-point precision that you specify when declaring the data type as float (val).
更常用的同义词是FLOAT类型,它拥有任意的浮点精度,可以在声明数据类型时指定,例如float (val)。
Your constants can be integer, character, floating-point, string, Boolean, octet or enumerated but not of type any or a user-defined type. Here are some examples.
常数可以是整数、字符、浮点数、字符串、Boolean、octet或枚举型,但不能是any类型或用户定义的类型。
In most programming languages, Numbers that include a decimal fraction are called floating-point Numbers, which are used to approximate real Numbers in mathematics.
在大部分的编程语言中,包含了小数点的数字称之为浮点数,可以用它来表示数学中的实数。
After it was released, a bug in the floating-point math unit was discovered, requiring every operating-system maker to write special code to accommodate the problem.
在它发布之后,在浮点数据单元中发现了一个bug,需要每个操作系统创建者来编写特定代码解决这个问题。
Note that, in this example, sum must be initialized to an explicit floating-point value; otherwise, all the subsequent computations will be done using integer arithmetic.
注意,在本例中,sum必须被初始化为一个显式的浮点值;否则,所有后续计算都将使用整数运算计算。
Here in Part 2, I focus on the functions that make sense only when you realize that they're designed for operating on floating-point Numbers instead of abstract real Numbers.
在第2部分中,我主要关注这样一些函数,它们的目的是操作浮点数,而不是抽象实数。
The standard mathematical operators, +, -, /, * are supported on both integer and floating point values, and you can mix and match floating-point and integers in calculations.
在整数和浮点数上,都支持使用标准的数学操作符(+、-、/ 和 *),可以在算式中混合使用浮点数和整数。
应用推荐