Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* test_prec.c */
- #include <stdio.h>
- int main() {
- printf("rounded to nearest because 3.14159 = %.2f\n", 3.14159);
- printf("rounded to nearest because 3.14159 = %.4f\n", 3.14159);
- printf("NOT rounded up because 1.561 = %.2f\n", 1.561);
- printf("NOT rounded down because 1.565 = %.2f\n", 1.565);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment