rrobles9112 / jquery-formatcurrency

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

Formatting a float value converts the value incorrectly #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reported From teyeheimans on usage page comments

I have a float var with the value "33195.5". 

I want it to be displayed as 33.195,50 This plugin however converts it 
incorrect and displayes "331.955,00". 

Bug?? 

My code: 

var sum = 33195.5;$("#field").val(sum).formatCurrency({  
decimalSymbol: ',',  
digitGroupSymbol: '.',  
dropDecimals: false,  
groupDigits: true,  
symbol: ''});

Original issue reported on code.google.com by bdewe...@hotmail.com on 28 Nov 2009 at 3:18

GoogleCodeExporter commented 9 years ago
Added a check for valid float values before attempted to clean the number which 
is 
what caused this issue

Original comment by bdewe...@hotmail.com on 28 Nov 2009 at 3:27

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r35.

Original comment by bdewe...@hotmail.com on 28 Nov 2009 at 3:30