[fpc-pascal] Value:x:y syntax

Christo Crause christo.crause at gmail.com
Tue Feb 9 13:15:39 CET 2021


On Tue, Feb 9, 2021 at 2:11 PM Luis Henrique via fpc-pascal <
fpc-pascal at lists.freepascal.org> wrote:

> At
> https://lists.freepascal.org/pipermail/fpc-devel/2021-February/043569.html
> I saw the syntax "value: x: y".
> > str(value:6:3, valuestr);
> What is the name of this and where is it documented?
> I did tests and saw that Y determines the width of the precision part, but
> I can't see any effect of X.
>

I guess one can call it optional formatting specifiers.  See documentation:
https://www.freepascal.org/docs-html/rtl/system/str.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20210209/2079aeac/attachment.htm>


More information about the fpc-pascal mailing list