Number.to_string
Number.to_string
Function
Convert numbers to strings.
Syntax
number.to_string()
Parameters
No parameters.
Return value
| Type | Description |
|---|---|
| String | Returns the string representation of a number. |
Example
num = 42 result = num.to_string() // Output: 42 print result
Notes
- The .0 at the end of floating point numbers is omitted according to BT stringification rules.