java - Converting Bit String to Double -


i have used double.doubletorawlongbits , long.tobinarystring convert double value string of bits. however, trying find methods convert string of bits double. double.longbitstodouble convert long representation of bits double, have been having trouble finding method convert string of bits long representation of bits.

any question appreciated! thank time in reading this.

given

long n = ... string s = long.tobinarystring(n); 

you use

long reconstructed = long.parselong(s, 2); 

to reconstruct long.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -