Previous Up Next

4.2.12  Transforming a real number into a string

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

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