In Java, there is no two – to – long conversion

I need to convert double to long and keep its binary structure instead of numeric value Just change the type, but keep the binary value Is there a native way?

Solution

There are 0700 to doubletolongbits and doubletolongrawbits Javadoc is your friend

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>