alberthrocks

test_prec.c SOURCE

Sep 24th, 2013
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. /* test_prec.c */
  2. #include <stdio.h>
  3.  
  4. int main() {
  5.         printf("rounded to nearest because 3.14159 = %.2f\n", 3.14159);
  6.         printf("rounded to nearest because 3.14159 = %.4f\n", 3.14159);
  7.         printf("NOT rounded up because 1.561 = %.2f\n", 1.561);
  8.         printf("NOT rounded down because 1.565 = %.2f\n", 1.565);
  9.         return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment