fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main(void)
  4. {
  5. float num1 = 123.456789012345F;
  6. double num2 = 123.456789012345;
  7.  
  8. printf("num1=%16.12f\n",num1);
  9. printf("num2=%16.12f\n",num2);
  10. return 0;
  11.  
  12. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
num1=123.456787109375
num2=123.456789012345