fork download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. printf("%.3f\n", 123456.987654f);
  5. printf("%.3f\n", 123456.987654);
  6. return 0;
  7. }
  8.  
Success #stdin #stdout 0s 4444KB
stdin
Standard input is empty
stdout
123456.984
123456.988