查看完整内容
SKILL Language User Guide.pdf的第128页Floating_Point Issues中写了这个问题,原文如下:
Because IEEE floating-point numbers use what are essentially binary (base 2) fractions to represent real numbers, some functions that operate on floating-point numbers yield unexpected (and incorrect) results. There are some floating-point numbers that the computer cannot represent exactly as binary fractions. In ...