ToString
(Replacing message template with parser tag)
(Updated Edited template to July 12, 2025.)
 
Line 10: Line 10:
Please see the .net format strings for more information: https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
Please see the .net format strings for more information: https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
[[Category:OCLOperators]]
[[Category:OCLOperators]]
{{Edited|July|12|2024}}
{{Edited|July|12|2025}}

Latest revision as of 06:04, 20 January 2025

This page was created by Lars.olofsson@mdriven.net on 2021-01-14. Last edited by Edgar on 2025-01-20.

toString will convert a number to the string representation, optional with a format string.

Example:

5.toString('00')

Will output '05'.

10.toString('X')

Will output 'A'.

Please see the .net format strings for more information: https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings