Comment on page
Number.ToText
Formats the given number as text.
function (optionalnumber
as nullable any, optionalformat
as nullable any, optionalculture
as nullable any) as nullable any
Formats the numeric value
number
to a text value according to the format specified by format
. The format is a single character code optionally followed by a number precision specifier. The following character codes may be used for format
. Number.Conversion and formatting
Format a number as text without format specified.
Number.ToText(4)
"4"
Format a number as text in Exponential format.
Number.ToText(4, "e")
"4.000000e+000"
Format a number as text in Decimal format with limited precision.
Number.ToText(-0.1234, "P1")
"-12.3 %"
Last modified 5yr ago