Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ANSI C floating point calculation inaccuracy
- #include<stdio.h>
- main()
- {
- float _lcl1=66.3;
- float _ucl1=76;
- float lbl1 = 0;
- float ubl1 = 0;
- lbl1 = (_lcl1 - 2.5 * (_ucl1 - _lcl1));
- printf ("%en",lbl1);
- }
- 4.205001e+01
Advertisement
Add Comment
Please, Sign In to add comment