The moose likes HTML, CSS and JavaScript and the fly likes multiplication problem in java script Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "multiplication problem in java script" Watch "multiplication problem in java script" New topic
Author

multiplication problem in java script

Raghuveer Rawat
Ranch Hand

Joined: Apr 03, 2003
Posts: 102
hi ranchers.
I am trying to multiply a large number 999999999999999.99 with some other number say 2.0 but it is strange it not giving correct result.
Is there someone who have faced this problem and have found some solution.
Thanx


Raghuveer Rawat<br />SCJP2
Raghuveer Rawat
Ranch Hand

Joined: Apr 03, 2003
Posts: 102
hi
Still looking for solution.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
It is due to the IEEE 64 bit standard that will cause numbers to be calculated wrong. Is there a way to fix it? No.
 
 
subject: multiplication problem in java script
 
Threads others viewed
Auto-Increment
Lock on flight no. or rec no.
Paging Resultset
While not running out.
Queue Manager TCP Listener Port
developer file tools