ToString
(Created page with "toString will convert a number to the string representation, optional with a format string. Example; 5.toString('00') Will output '05'.")
 
No edit summary
Line 4: Line 4:
  5.toString('00')
  5.toString('00')
Will output '05'.
Will output '05'.
10.toString('X')
Will output 'A'.
Please see the .Net format strings for more information.

Revision as of 19:26, 2 March 2021

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.

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