joejuzl / jquery-formatcurrency

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

Blank Input converts to 0 #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Call convert on an input that is blank
2. Value should change from "" to 0

What is the expected output? What do you see instead?
Value should stay "", as there is a big difference between NULL and 0

What version of the product are you using? On what operating system?
1.4.0

Please provide any additional information below.

Original issue reported on code.google.com by kooyman....@gmail.com on 11 Jul 2011 at 11:46

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
The problem is actually with asNumber..
An option to leave NULL as NULL would be great

asNumber( {ignoreNull:true} )

Original comment by kooyman....@gmail.com on 11 Jul 2011 at 11:51