Number.len
Number.len
Function
Returns the number of characters after converting the number into a string.
Syntax
number.len()
Parameters
No parameters.
Return value
| Type | Description |
|---|---|
| Int | Returns the numeric string length. |
Example
num = 12345 result = num.len() // Output: 5 print result
Notes
- Negative signs and decimal points are included in the length.