fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. float x = 123456789012345.1;
  5. double y = 123456789012345.1;
  6. printf("float: %.2f double: %.2f\n",x,y);
  7.  
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
float: 123456788103168.00 double: 123456789012345.09