fork(1) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. union
  8. {
  9. unsigned b;
  10. float f;
  11. };
  12. b = 0x37800000;
  13. cout << f << endl;
  14. float f1 = 1.52587890625e-5f;
  15. cout << f - f1 << endl;
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 2680KB
stdin
Standard input is empty
stdout
1.52588e-05
0