java中 Math和StrictMath

今天无意中看到java api中有StrictMath 这个工具类,发现它部分调用实现是用了Math中的实现。Math 这个类API 1.0版本就有了,StrictMath API是1.3版本才出来的。

以前没有用过,平时可以用它了。

至于有什么不同,后一个类算增强版本吧。

原文地址:https://www.cnblogs.com/huzi007/p/11813023.html