rounding problem

new topic     » topic index » view thread      » older message » newer message

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.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu