rounding problem
- Posted by George Walters <gwalters at sc.rr.com> Oct 23, 2006
- 526 views
Using EU 2.4 and Win32 IF I trace and display the value of temp (a variable) the display shows temp = .7149999738 sprintf("%10.4f, temp) displays .7150 which is not correct if its value is .7149999738 On the data base (mysql) the value displayed is .7150. I need to solve this riddle since I'm having invoice totals incorrect. So how does sprintf know that .7150 is the value but yet .7149999738 is displayed on the trace?? I"m confused.