Re: Optimized verion of AddThousandSeparator
- From: "Stig Johansen" <stig.johansen@xxxxxxxxxxxx>
- Date: Thu, 10 Apr 2008 10:23:33 +0200
"Tommi Prami" <tommi.nospam.prami@xxxxxxxxxxxxxxxxxx> wrote in message
news:47fdc42d$1@xxxxxxxxxxxxxxxxxxxxxxxxx
toHave you read the documentation for FormatFloat() yet? It tells you how
forindicate that you want thousand separators to appear in the output. As
Ifthe actual separator, the global ThousandsSeparator variable is used.
','your system does not define any separator, then the VCL defaults to the
character.
Just What I suspected, so I can't use that.
Yes you can.
As for the decimal separator i do:
VAR
kDecimalSeparator : Char ; // keep
....
DecimalSeparator := '.' ; // in DK we normally use ','
something := ' Stardate: ' + FormatFloat('#.0',Now) ; // now it uses '.'
as decimal separator
DecimalSeparator := kDecimalSeparator ; // restore system settings.
You just have to do the same with the ThousandsSeparator as Remy
mentions.
--
Med venlig hilsen/Best regards
Stig Johansen
.
- Follow-Ups:
- Re: Optimized verion of AddThousandSeparator
- From: Tommi Prami
- Re: Optimized verion of AddThousandSeparator
- References:
- Optimized verion of AddThousandSeparator
- From: Tommi Prami
- Re: Optimized verion of AddThousandSeparator
- From: Remy Lebeau \(TeamB\)
- Re: Optimized verion of AddThousandSeparator
- From: Tommi Prami
- Re: Optimized verion of AddThousandSeparator
- From: Remy Lebeau \(TeamB\)
- Re: Optimized verion of AddThousandSeparator
- From: Tommi Prami
- Optimized verion of AddThousandSeparator
- Prev by Date: Re: Optimized verion of AddThousandSeparator
- Next by Date: Re: Optimized verion of AddThousandSeparator
- Previous by thread: Re: Optimized verion of AddThousandSeparator
- Next by thread: Re: Optimized verion of AddThousandSeparator
- Index(es):