• 如果我们回想一下我们一开始讲过的数据对象的种类,浮点数,整数,字符串,它们实际上有相同的行为方式。

    If we go back up to the kinds of data objects we started with, floats, ints, strings, they actually behave the same way.

    youdao

  • 它只是返回一个表示温度的浮点数。

    All it does is return a floating point number representing the temperature.

    youdao

  • 最好完全避免使用浮点数比较。

    It would be best to try to avoid floating point comparison entirely.

    youdao

  • 所以f不是已经是个浮点数了吗?

    So isn't f already a float?

    youdao

  • ebnf样式的浮点数描述。

    EBNF-style description of floating point number.

    youdao

  • 为什么需要用单独的宏进行浮点数比较?

    Why do you need separate macros for floating point comparisons?

    youdao

  • 那将会给我们一个浮点数。

    That's going to give me a float.

    youdao

  • 还可以使用指数表示浮点数,参见清单8。

    Floats can also be expressed using exponents, as shown Listing 8.

    youdao

  • 它就给我一个浮点数。

    It hands me a float.

    youdao

  • 浮点数:一个浮点数。

    Float: a floating point number.

    youdao

  • 但浮点数则不是这样。

    The same is not true for floating-point numbers.

    youdao

  • 简单类型包括字符串、浮点数、整数、枚举等。

    Simple types include string, float, integer, enumeration, etc.

    youdao

  • 浮点数并不是实数。

    Floating-point Numbers are not real Numbers.

    youdao

  • 如果您读取的浮点数,还有另外需要关注的问题。

    If you're reading a floating point number, there are other concerns.

    youdao

  • 坐标值是数字(小数、浮点数等),不是字符串。

    The coordinate values are numeric (decimal, float, etc.), not character strings.

    youdao

  • 随着数字变大,它们之间的浮点数就会越来越少。

    As Numbers get larger, there are fewer floats between them.

    youdao

  • 所以我可以通过改变其中一个,整型数为浮点数。

    And I can fix this just by changing one of those values to a floating point.

    youdao

  • 浮点数不是精确值,所以使用它们会导致舍入误差。

    Floating point Numbers are not exact, and manipulating them will result in rounding errors.

    youdao

  • 适应性公式返回的是介于0和1之间的一个浮点数。

    The fitness formula should return a floating point number between 0 and 1.

    youdao

  • “普通消费者不需要双精度(浮点数支持)”他说。

    "Consumers don't need double precision," he said.

    youdao

  • 我想确保这儿我得到的是一个浮点数,我该怎么做呢?

    I can't rely on the user. I want to make sure I get a float in it, so how do I do that?

    youdao

  • Google提供清单9所示的宏以支持浮点数比较。

    Google provides the macros shown in Listing 9 for floating point comparisons.

    youdao

  • 对于浮点数,您将在整数部分和小数部分之间放置小数点。

    For floating-point Numbers, you place a decimal as the separator between the whole part of the number and the fraction.

    youdao

  • 可以看到,对于比较小的2的幂次方,浮点数是非常精确的。

    As you can see, floats are pretty accurate for small powers of two.

    youdao

  • 当然,这并不总是可能的,但您应该意识到要限制浮点数比较。

    This is, of course, not always possible, but you should be aware of the limitations of floating point comparison.

    youdao

  • IEEE 754用科学记数法以底数为2的小数来表示浮点数。

    IEEE 754 represents floating point Numbers as base 2 decimal Numbers in scientific notation.

    youdao

  • 区别在于一个事实:计算机中使用的浮点数据类型无法包含每个实数。

    The difference lies in the fact that floating-point data types used in computers can't hold every real number.

    youdao

  • 由有限精度浮点数字引起的很小的舍入错误就会严重歪曲数学精度计算。

    Mathematically precise calculations can be thrown severely askew by small round-off errors caused by finite-precision floating-point Numbers.

    youdao

  • 浮点数最好用来表示象测量值这类数值,这类值从一开始就不怎么精确。

    Floating point Numbers are best reserved for values such as measurements, whose values are fundamentally inexact to begin with.

    youdao

  • 浮点数最好用来表示象测量值这类数值,这类值从一开始就不怎么精确。

    Floating point Numbers are best reserved for values such as measurements, whose values are fundamentally inexact to begin with.

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定