str

Declaration

str (num: INTEGER): STRING

Description

Converts an integer to a string, similar to stringify, but only works for integers.

See Also

stringify
string_to_int
str_english
string functions

Example

script convert_strings is
  number := 42
  str_number := str (number) 
    -- str_number = '42'
  str_number := stringify (number)
    -- str_number = '42'
  number := string_to_int (str_number)
    -- number = 42
  eng_number := str_english (number)
    -- eng_number = 'forty two'
end