fork(2) download
  1. class Teste2 {
  2. public static void main(String[] args) {
  3. float a = Float.intBitsToFloat(5);
  4. float pinf = Float.intBitsToFloat(0b0111_1111__0000_0000__0000_0000__0000_0000);
  5. float ninf = Float.intBitsToFloat(0b1111_1111__0000_0000__0000_0000__0000_0000);
  6. float b = a / pinf;
  7. float c = a / ninf;
  8. System.out.println(b);
  9. System.out.println(c);
  10. }
  11. }
Success #stdin #stdout 0.09s 27828KB
stdin
Standard input is empty
stdout
0.0
-0.0