Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1,9999 formatted to 1,00 instead of 2,00 #17

Closed
GoogleCodeExporter opened this issue Jan 29, 2016 · 4 comments
Closed

1,9999 formatted to 1,00 instead of 2,00 #17

GoogleCodeExporter opened this issue Jan 29, 2016 · 4 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. enter 1,9999 into the txtAmount textbox  
2. $("#txtAmount").format({format:"#.00",locale:'nl'}); 

What is the expected output? What do you see instead?
 - expected: 2,00
 - I see 1,00

What version of the product are you using? On what operating system?
1.1.2 (OS = windows)



Original issue reported on code.google.com by da...@techconnect.nl on 18 Jan 2010 at 10:24

@GoogleCodeExporter
Copy link
Author

the same here...

localization does not matter, number does not matter - as long as you use have 
more
precision than in your format (and of course use sth like ',9999')!

Original comment by Dittodh...@gmail.com on 4 Feb 2010 at 7:29

@GoogleCodeExporter
Copy link
Author

Yes indeed this is a problem, as you say happens with all formatting options 
where 
rounding necessary. Will be fixed with the inclusion of rounding options in the 
next 
release (1.2) which is due soon.

Original comment by apar...@gmail.com on 5 Feb 2010 at 6:49

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

What is the current guideline for the release of the 1.2 version? This bug is a 
major 
one, and even though I fixed it in the release we are currently using, I would 
prefer 
to have a *clean* version, which might mean upgrading to 1.2 as soon as 
possible. Can I 
grab a nightly build of this version? Is there a way to access in read mode to 
the 
source repository to get the current development version?

Thanks.

Original comment by denis.ca...@gmail.com on 10 Feb 2010 at 1:45

@GoogleCodeExporter
Copy link
Author

Apologies for the delay in responding, realised it's not been emailing me with 
issue 
updates.

1.2 is now on svn and tagged as a beta until I can find more time to finish 
testing etc. 
So it may well work for your needs, I've not seen any major issues yet, just be 
wary of 
the change of function names and the separation of parsing and formatting tasks 
more.

Issue can be seen to be fixed via something like -

$('span').parseNumber({format:"#.00",locale:'nl'}, true);
$('span').formatNumber({format:"#.00",locale:'nl'});

Original comment by apar...@gmail.com on 29 Apr 2010 at 4:53

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant