ToString
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
toString will convert a number to the string representation, optional with a format string. | <code>toString</code> will convert a number to the string representation, optional with a format string. | ||
Example: | '''Example:''' | ||
5.toString('00') | 5.toString('00') | ||
Will output '05'. | Will output '05'. | ||
Line 7: | Line 7: | ||
Will output 'A'. | Will output 'A'. | ||
Please see the . | Please see the .net format strings for more information. | ||
[[Category:OCLOperators]] | [[Category:OCLOperators]] |
Revision as of 07:24, 2 May 2023
This page was created by Lars.olofsson 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.