locbet / jquery-numberformatter

Automatically exported from code.google.com/p/jquery-numberformatter
0 stars 0 forks source link

negative number formatting #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. entering negative number to the field 
2.
3.

What is the expected output? What do you see instead?
I see NaN instead -1234

What version of the product are you using? On what operating system?
Last version, winXp

Please provide any additional information below.
I tried to format with 
$("#field").format({format:"-#,###,###", locale:"hu"}); doesn't help.

Original issue reported on code.google.com by stoney...@gmail.com on 22 Jan 2009 at 3:30

GoogleCodeExporter commented 8 years ago
Looked this over, it appears you are using it incorrectly.  You should change 
your
code to;

$("#field").format({format:"-#,###", locale:"hu"});

And this will fix your problem.  In formatting, you only specify how many 
numbers are
between the separator one time, so by doing it multiple times, you caused the 
error.

Also of note, Hungarian (I assume that's what "hu" is) isn't supported, so the 
values
will default to "en".  Please check the unminimized version of the code for 
supported
languages until I can expand this documentation.

Original comment by bluedevi...@gmail.com on 26 Jan 2009 at 6:16

GoogleCodeExporter commented 8 years ago
Thanks for your help.

Original comment by stoney...@gmail.com on 26 Jan 2009 at 8:31