[fpc-pascal] Currency symbol wrong location

Michael Van Canneyt michael at freepascal.org
Sat Jun 9 17:40:03 CEST 2012



On Sat, 9 Jun 2012, Leonardo M. Ram=E9 wrote:

> ----- Original Message -----
>
>> From: Michael Van Canneyt <michael at freepascal.org>
>> To: Leonardo M. Ram=E9 <martinrame at yahoo.com>; FPC-Pascal users discussi=
ons <fpc-pascal at lists.freepascal.org>
>> Cc: =

>> Sent: Saturday, June 9, 2012 11:59 AM
>> Subject: Re: [fpc-pascal] Currency symbol wrong location
>> =

>> =

>> =

>> On Sat, 9 Jun 2012, Leonardo M. Ram=E9 wrote:
>>
>>>  Hi, I want to format a float number to currency. To do this, I use the =

>> Format function using the %m format, as this:
>>>
>>>  Format('%m', [123.25]);
>>>
>>>  I'm using Ubuntu 12.04 and my regional settings at configured to =

>> display "$ 1234.25", but I'm getting "123.25$", why is =

>> the money symbol at the right side, instead of using the regional settin=
g?.
>> =

>> Did you use the CLocale unit ?
>> =

>> Michael.
>> _______________________________________________
>> fpc-pascal maillist=A0 -=A0 fpc-pascal at lists.freepascal.org
>> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>> =

>
> No, but after you mentioned I included it in my "uses". The result was a =
number without the money symbol.

That probably means the clocale does not know how to handle the currency sy=
mbol ?

Michael.


More information about the fpc-pascal mailing list