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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiplicaton Error or Bug 1

Status
Not open for further replies.

econnections

IS-IT--Management
Apr 28, 2006
30
GB
I noticed an error in one of my reports. I simplified the problem to the lines shown below. I have only tried this with IE6.0

document.getElementById('text1').value = 0.4 * 33;

ANSWER
13.200000000000001
 
This link is old as hell, but it still describes the problem accurately.



The solution? Use Math.round

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson
[small]<P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B> bites again.[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top