[Gambas-user] Format$ for numbers
Gianluigi
bagonergi at gmail.com
Tue Aug 7 16:49:32 CEST 2018
2018-08-07 16:39 GMT+02:00 Benoît Minisini <g4mba5 at gmail.com>:
> Le 07/08/2018 à 16:22, Gianluigi a écrit :
>
>>
>> Thousand separators are used as soon as there is a comma in the
>> formatting string before the point, and at least one digit.
>>
>> Regards,
>>
>> -- Benoît Minisini
>>
>>
>> Sorry my ignorance, but I did not understand the answer :-(
>> Attach example
>>
>> Regards
>> Gianluigi
>>
>>
> I mean that you can just write:
>
> Format(N, ",#")
>
> To get thousand separators.
>
> You don't have to write three "#" in the format string.
>
> Regards,
>
> --
> Benoît Minisini
>
>
So if I also need two decimals the correct form is:
Print Format$(N, ",#.#0")
Thank you very much
Regards
Gianluigi
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180807/496e6cd5/attachment.html>
More information about the User
mailing list