number_to_string


number_to_string(n, @optional radix = 10)
      

Return the external representation of the number n as a string.

The number is expressed in radix, which must be an exact integer from the set #(2, 8, 10, 16). Radix defaults to 10. In any case, no radix specifier will appear in the resulting string.

Examples:


number_to_string(221/12)
// 221/12

string_length(number_to_string(221/12))
// 6

number_to_string(221/12, 16)
// dd/c
      

Also see:

string_to_number


Core Module Index | Contents