开发者

question about negative infinite

开发者 https://www.devze.com 2023-01-02 22:36 出处:网络
what is equivalent开发者_运维知识库to negative infinityin java?−∞Float.NEGATIVE_INFINITY and Double.NEGATIVE_INFINITY.Are you looking for Double.NEGATIVE_INFINITY ?For the primitive integral types,

what is equivalent开发者_运维知识库 to negative infinity in java?−∞


Float.NEGATIVE_INFINITY and Double.NEGATIVE_INFINITY.


Are you looking for Double.NEGATIVE_INFINITY ?


For the primitive integral types, there are Long.MIN_VALUE, Integer.MIN_VALUE, and Byte.MIN_VALUE, . For double and float, it's a little more complicated. The smallest "real" values are Double.MIN_VALUE and Float.MIN_VALUE, respectively. However, there are also Double.NEGATIVE_INFINITY and Float.NEGATIVE_INFINITY.

0

精彩评论

暂无评论...
验证码 换一张
取 消