[Lazarus] FormatFloat('#,##.00', -1) -> .-1,00

Werner Pamler werner.pamler at freenet.de
Mon Sep 7 17:55:23 CEST 2015


> thousandseperator := '|';
>
> FormatFloat('#,##.00', -10);
>
> result:
> *|*-10,00

The behavior that you observe is a bit strange, maybe it is a bug. But 
you can avoid it by putting three symbols between thousand and decimal 
separator, i.e. use '#,##0.00' or '#,###.00'.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150907/d5cc5acb/attachment-0003.html>


More information about the Lazarus mailing list