Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is this a bug ? decimal bug ?

Status
Not open for further replies.

nengie

Programmer
Jan 7, 2002
14
0
0
TH
Try this

? ROUND(1219.000000*3.795,2) = 4626.11
? ROUND(1219.000000*3.7950,2) = 4626.10
? ROUND(1219.000000*ROUND(3.7950,4),2) = 4626.10
? ROUND(ROUND(1219.000000,4)*ROUND(3.7950,4),2) = 4626.11

The result should be 4626.105 and round(4626.105,2) = 4626.11.

Any idea ? TIA
 
No bug.
If you wrote 3.7950 exactly, is it different from 3.795,
as may be 3.7951, 3.7952, ... 3.794999...
Potential digit right raise result.
Tesar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top