sansanbgl / jquery-formatcurrency

Automatically exported from code.google.com/p/jquery-formatcurrency
GNU General Public License v3.0
0 stars 0 forks source link

Wrong currency value of numbers larger that 9999999.99 #37

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. declare a html input <input type="text" id="moneyInput">

2. set method formatCurrency with jQuery in this code 
$('#moneyInput').change(function() $("#moneyInput").formatCurrency();});

3. set a value larger that 9999999.99 and put it in the input text with jQuery 
$("#moneyInput").val(19999999.99);

4. make the event change happend $("#moneyInput").change()

What is the expected output? What do you see instead?
The output value should be $19,999,999.99 but that give me $1.999999.99

What version of the product are you using? On what operating system?
jquery.formatCurrency-1.4.0.min.js

Please provide any additional information below.
i am using jQuery v1.9.0

the value in the html is value="1.999999999E7"

Original issue reported on code.google.com by lccj...@gmail.com on 15 Feb 2013 at 1:32

GoogleCodeExporter commented 8 years ago
And If you try to enter the following value it is also changing the given value 

12345678901234567  to $12,345,678,901,234,568.00

Please address the following issue

Original comment by anila...@gmail.com on 5 Mar 2013 at 10:01