记住,整形数运算要比浮点数运算快得多,因为处理器可以直接进行整型数运算,浮点数运算需要依赖于外部的浮点数处理器或者浮点数数学库。
Remember, integer arithmetic is much faster than floating-point arithmetic, as it can usually be done directly by the processor, rather than relying on external FPUs or floating point math libraries.
对于财务应用程序(尤其是需要精确到最后一位的会计应用程序),处理浮点数和双精度数时也需要格外小心。
Financial applications (and especially accounting applications that require accuracy to the last cent) also need to be exceedingly careful when manipulating floats and doubles.
要修复此问题,用户可下载上述版本的漏洞补丁,或是为处理浮点数使用额外标志重编译PHP 程序。
To fix the problem, users can download patches for those versions or recompile PHP with additional flags for handling floating point digits.
通常,不同的中央处理单元 (CPU)和操作环境以不同的方式存储浮点数,简单地比较期望值和实际值是无效的。
Typically, different central processing units (CPUs) and operating environments store floating points differently and simple comparisons between expected and actual values don't work.
我们处理小数的时候要精心些,比方说我们在做一个简单的统计程序时,要限制结果不能超过100,要尽可能晚的把它转化成浮点数。
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.
所以这里的意思是编译器将,做“计算“,譬如13这样一个浮点数,-到另一个浮点数-,然后为我们处理除法。
So what that means is the compiler is actually going to first "cast" so to speak 13 from whatever it is - to a float -- to a floating point value -- and then perform the division for us.
主要是要明白Psyco对于处理多次循环的块是很有用的,而且它知道如何优化涉及整数和浮点数的操作。
The main thing to understand is that Psyco is useful for handling blocks that loop many times, and it knows how to optimize operations involving integers and floating point 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 ).
用float来处理3,它将能完成装换,但是如果我吧这个转化为浮点数。
I if I go over here, and I say float of three, it's going to do the conversion.
在清单2中,我重新打开了numeric类(其处理固定和浮点数字)以便添加gram和pound方法。
In Listing 2, I reopen the Numeric class (which handles both fixed and floating-point Numbers) to add the gram and pound methods.
本论文是围绕基于浮点数字信号处理器(fdsp)的线路保护测控装置的研究这一中心任务而展开的。
The research on the protection device for transmission line based on floating-point digital signal processor (FDSP) is the theme of this paper.
这些天,浮点数学一般是硬件的设计处理的完整宽度浮点类型。
These days, floating-point math is typically done in hardware that's designed to handle the full width of the floating-point types.
用ADSP2 1 0 6 0浮点数字信号处理器实现高性能、高精度的数字压缩。
High performance and accuracy digital compression is completed by ADSP21060 floating point digital signal processor.
浮点数运算模块是采用浮点数格式化等子程序对数据进行处理,提高了数据的运算精度;
The floating point numbers operation modularization deals with data through floating point numbers program of format, multiplication and division, which improves operation precision of the data;
它针对处理的数据格式为TMS320C3X扩展精度浮点数据格式。
The TMS320C3X Extended-Precision Floating-Point Format is used by this LOD design.
它针对处理的数据格式为TMS320C3X扩展精度浮点数据格式。
The TMS320C3X Extended-Precision Floating-Point Format is used by this LOD design.
应用推荐