Re: Problem with Numeric Field [message #3006 is a reply to message #3005] |
Wed, 20 June 2012 04:58 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to previous message](/theme/default/images/down.png) |
AJM
Messages: 2361 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
I have tested this on my local PC and I cannot duplicate the problem. Input of '175000' or '175,000' is reformatted to '175000.00' for internal use, and changed to '175,000.00' when displayed on the screen.
The only way that this would be displayed as '175.000,00' is if you locale setting says that:
- decimal point is ',' (comma)
- thousands separator is '.' (period)
The formatNumber() and number_unformat() functions use the same locale settings, so I cannot see how they can get out of step.
Can you step through with your debugger and see what happens inside both of these functions?
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
[Updated on: Thu, 31 July 2014 03:55] Report message to a moderator
|
|
|