fork download
  1. class Teste {
  2. public static void main(String[] args) {
  3. float a = Float.intBitsToFloat(0);
  4. float b = Float.intBitsToFloat(0b1000_0000__0000_0000__0000_0000__0000_0000);
  5. System.out.println(a);
  6. System.out.println(b);
  7. }
  8. }
Success #stdin #stdout 0.06s 27756KB
stdin
Standard input is empty
stdout
0.0
-0.0