fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main(void) {
  5. float f = (1 << 23) + 1; // smallest odd integer > 2^23
  6. printf("%f -> %f\n", f, round(f + .5));
  7. return 0;
  8. }
  9.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
8388609.000000 -> 8388610.000000