[fpc-pascal] Value:x:y syntax

Luis Henrique luis at softsatsistemas.com.br
Tue Feb 9 16:26:34 CET 2021


09.02.2021, 09:15, "Christo Crause" <christo.crause at gmail.com>:
> 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

I think I was lazy and didn't look in the right place, thanks Michael and Christo.


More information about the fpc-pascal mailing list