sshelake / jquery-formatcurrency

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

dropDecimals not supported in formatCurrency #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. $(function() {
    $(".currency").blur(function() {
        $('.currency').formatCurrency({ dropDecimals:false, symbol: '#'  });
    });
});
2.
3.

What is the expected output? What do you see instead?
No cents in the currency

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

Please provide any additional information below.

Original issue reported on code.google.com by bjon...@hotmail.com on 9 Nov 2009 at 3:25

GoogleCodeExporter commented 8 years ago
did a search on the js and dropDecimals is nowhere in the entire source.

Note: in the steps to replicate I accidently had it set to false but changing 
it to
true generates the same result.

Original comment by bjon...@hotmail.com on 9 Nov 2009 at 3:27

GoogleCodeExporter commented 8 years ago
The dropDecimal feature is to be replaced by the roundToDecimals = 0 or 
roundToDecimals = -2 feature

Original comment by bdewe...@hotmail.com on 28 Nov 2009 at 2:33