floating-point - 最大和最小实数

标签 floating-point precision sml

如何找到最大可能的实数和最接近零的实数

有库值Int.maxIntInt.minInt,但Real库似乎不包含类似的常量。

最佳答案

根据这个http://sml-family.org/Basis/real.html#SIG:REAL.maxFinite:VAL

+- maxFinite 应该是你的答案,对吧?

关于floating-point - 最大和最小实数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49753633/

相关文章:

SML 运算符和操作数在foldr 中不一致

objective-c - 将浮点值转换为 id。我怎样才能做到这一点?

c++11 - std::numeric_limits::quiet_NaN() 与 std::nan() 与 NAN

c++ - 区分零和负零

java - 格式化 double 到 6 位小数精度

javascript 使用 Math.exp 获取 Math.sinh 结果

c++ - 从浮点值打印 2 位小数

math - float 学有问题吗?

SML map 功能

loops - SML - 列表替换函数的迭代翻译