gpt4 book ai didi

java - 带有 NaN 的 Double.longBitsToDouble 和 Double.doubleToRawLongBits

转载 作者:行者123 更新时间:2023-11-29 08:06:41 26 4
gpt4 key购买 nike

为什么

Double.NaN != Double.longBitsToDouble(Double.doubleToRawLongBits(Double.NaN));

尽管SE 6 documentation说如下:

In all cases, the result is a long integer that, when given to the longBitsToDouble(long) method, will produce a floating-point value the same as the argument to doubleToRawLongBits.

最佳答案

但是 Double.NaN != Double.NaN...

关于java - 带有 NaN 的 Double.longBitsToDouble 和 Double.doubleToRawLongBits,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10688926/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com