Guest User

Untitled

a guest
Apr 25th, 2012
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. ANSI C floating point calculation inaccuracy
  2. #include<stdio.h>
  3. main()
  4. {
  5. float _lcl1=66.3;
  6. float _ucl1=76;
  7. float lbl1 = 0;
  8. float ubl1 = 0;
  9. lbl1 = (_lcl1 - 2.5 * (_ucl1 - _lcl1));
  10. printf ("%en",lbl1);
  11. }
  12.  
  13. 4.205001e+01
Advertisement
Add Comment
Please, Sign In to add comment