fork(1) download
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. int main() {
  5. float const f0 = (float)0.50000008940696713;
  6. float const f1 = 0.50000008940696713f;
  7.  
  8. std::cout << std::hexfloat << f0 << "\n" << std::hexfloat << f1 << "\n";
  9. return 0;
  10. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
0x1.000004p-1
0x1.000002p-1