I guess the advantage of long floats is not only that they can span huge ranges, which may or may not be useful, they probably also have a much larger mantissa (I refuse to use the word "significand" for this) than a double, which gives your numbers a higher precision.
But as someone said, scientists love those types. Probably for the above reason. Note that the libraries are often called arbitrary precision libraries.
发布评论
评论(2)
我想长浮点数的优点不仅在于它们可以跨越很大的范围,这可能有用也可能没用,它们可能还具有比双精度更大的尾数(我拒绝为此使用“有效数字”一词),这使您的数字具有更高的精度。
但正如有人所说,科学家喜欢这些类型。大概就是以上原因。请注意,这些库通常称为任意精度库。
I guess the advantage of long floats is not only that they can span huge ranges, which may or may not be useful, they probably also have a much larger mantissa (I refuse to use the word "significand" for this) than a double, which gives your numbers a higher precision.
But as someone said, scientists love those types. Probably for the above reason. Note that the libraries are often called arbitrary precision libraries.
科学家使用这种东西 - 偶尔使用任意大小的整数/浮点数/小数。
对于您来说,32 位或 64 位通常就足够了。
另请参阅:
http://en.wikipedia.org/wiki/Arbitrary- precision_arithmetic
Scientists use this kind of stuff - and occasionally arbitrarily sized integers/floats/decimals.
For you, 32-bit or 64-bit is usually enough.
See also:
http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic