fork download
  1. public class Main {
  2. public static void main(String[] args) {
  3. double a = 10000999999999999999100.69d;
  4. String x = Long.toBinaryString(Double.doubleToRawLongBits(a));
  5. while (x.length() < 64) {
  6. x = "0" + x;
  7. }
  8. System.out.println(x);
  9. }
  10. }
Success #stdin #stdout 0.08s 35940KB
stdin
Standard input is empty
stdout
0100010010000000111100010011111000001100000000110111001011001101