ToString
No edit summary
(Replacing message template with parser tag)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
toString will convert a number to the string representation, optional with a format string.
<message>Write the content here to display this box</message>
'''toString''' 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 8:
Will output 'A'.
Will output 'A'.


Please see the .Net format strings for more information.
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]]
{{Edited|July|12|2024}}

Latest revision as of 07:58, 17 June 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 95 days ago on 06/17/2024. What links here