In Part 2, I'll explore the functions more designed for operating on floating point Numbers as opposed to abstract real Numbers.
在第2部分,我将探讨专为操作浮点数(与抽象实数相反)而设计的函数。
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 difference lies in the fact that floating-point data types used in computers can't hold every real number.
区别在于一个事实:计算机中使用的浮点数据类型无法包含每个实数。
In most programming languages, Numbers that include a decimal fraction are called floating-point Numbers, which are used to approximate real Numbers in mathematics.
在大部分的编程语言中,包含了小数点的数字称之为浮点数,可以用它来表示数学中的实数。
Floating-point Numbers are not real Numbers.
浮点数并不是实数。
The exponential function serves as a good example of how careful you have to be when dealing with limited-precision floating-point Numbers instead of infinitely precise real numbers. ex (Math.exp ).
指数函数是一个很好的例子,它表明处理有限精度浮点数(而不是无限精度实数)时是需要非常小心的。
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所示。
Many of the familiar algebraic rules for real number arithmetic do not always hold for floating-point arithmetic.
对于浮点算法而言,许多惯用的实数算法代数规则有时并不适用。
Real Programmers scorn floating point arithmetic. The decimal point was invented for pansy bedwetters who are unable to think big.
真正的程序员嘲笑浮点算法。小数点是为不会顺利思考的家伙发明的。
A real type defines a set of Numbers that can be represented with floating-point notation.
实数类型定义了一组可以以浮点记号描述的数。
Compared with the floating-point computing method, the shift-add operation is simpler, and can be implemented easily by VLSI, which enables the real-time image processing to be realized by hardware.
相对于浮点计算法,移位-加操作最大的优点是计算简单,特别易于超大规模集成电路实现,因而使硬件实时处理图像信号成为可能。
Floating-Point literals may also be represented using exponential notation: a real number followed by the letter e(or E), followed by an optional plus or minus sign, followed by an integer exponent.
此外,还可以使用指数记数法表示浮点型直接量,即实数后跟随字母e或E,后面加上正负号,其后再加一个整型指数。
Real Programmers scorn floating point arithmetic.
真正的程序员鄙视浮点运算。
Real Programmers scorn floating point arithmetic.
真正的程序员鄙视浮点运算。
应用推荐