[Lazarus] Format an integer with thousandseparators by function format()

John Landmesser jmlandmesser at gmx.de
Fri Feb 17 22:41:45 CET 2023


this one works, but i don't know why to devide the integer by 1:

     fmt := '%.0n';
     s1 := Format(fmt,[MyInteger/*1*]);

Lhelp tells me about function format, that does not work:

> N
> Number format. This is the same as fixed point format, except that
> thousand separators are inserted in the resulting string.
Documentation generated on: Jun 27 2020

I'm on Lazarus 2.3.0 (rev main-2_3-2854-g0278edaea3) FPC 3.2.2

Tipps are welcome

John Landmesser

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20230217/89aa6b4e/attachment.htm>

More information about the lazarus mailing list