ToString
No edit summary
(Automatically adding template at the end of the page.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<code>toString</code> will convert a number to the string representation, optional with a format string.
'''toString''' will convert a number to the string representation, optional with a format string.


'''Example:'''
'''Example:'''
Line 7: Line 7:
Will output 'A'.
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
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}}

Latest revision as of 15:48, 10 February 2024

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

This page was edited 93 days ago on 02/10/2024. What links here