Previous Up Next

5.2.14  Transforming a real number into a string

The cat command (see Section 5.2.12) can also be used to transform a real number into a string, as can + (see Section 5.2.13).

If cat has a real number as an argument, the result will be a string.

Example

cat(123)
     
“123”           

Similarly, if you add a real number to an empty string, the result will be a string.

Example

""+123
     
“123”           

Previous Up Next