Math.(E|PI) 和 StrictMath 的区别是什么?
What are the differences between Math.(E|PI) and those of StrictMath?
我刚刚发现 java.lang.StrictMath
has E
and PI
which each is also available in java.lang.Math
。
它们之间有什么区别吗?
我检查了来源(Math
, StrictMath
),发现它们是相同的值。
不,当然不是。它们是常量,您不需要以不同的精度级别存储它们。
我刚刚发现 java.lang.StrictMath
has E
and PI
which each is also available in java.lang.Math
。
它们之间有什么区别吗?
我检查了来源(Math
, StrictMath
),发现它们是相同的值。
不,当然不是。它们是常量,您不需要以不同的精度级别存储它们。