[fpc-devel]Format() trouble

Michael Van Canneyt michael.vancanneyt at wisa.be
Wed Jun 20 10:35:56 CEST 2001


On Wed, 20 Jun 2001, Aleksey V. Vaneev wrote:

> Hello,
>
>   How can I avoid "standardised" Format()'s formatting under Win32?
>   For example, if I use '%8.4f' in format string, it outputs
>   '444,333' if my country is Russia, while DOS version outputs
>   '444.333' (I guess it doesn't have country-specific information).
>   Just wanted to know whether it is possible to "hardcode" some
>   aspects of formatting or not. Thanks.

It is. Set the 'DecimalSeparator' string to ','.
All this is explained in the documentation of the SysUtils unit.

Michael.





More information about the fpc-devel mailing list