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
Post a Comment