[PHP] Converting regional decimal numbers

2004-07-23 Thread C.F. Scheidecker Antunes
Hello all, I have a few users that use a different number format, other than the US one, which is 1.526,23 . That is, the comma is used as a separator for the fractional part of the number (.23) and the dot is used to separate thousands. Therefore, I need to convert 1.526,23 to 1,526.23, invert

Re: [PHP] Converting regional decimal numbers

2004-07-23 Thread John W. Holmes
C.F. Scheidecker Antunes wrote: I have a few users that use a different number format, other than the US one, which is 1.526,23 . That is, the comma is used as a separator for the fractional part of the number (.23) and the dot is used to separate thousands. Therefore, I need to convert 1.526,23