Number.to_number
Number.to_number
Function
Returns the numeric value of the current number itself.
Syntax
number.to_number()
Parameters
No parameters.
Return value
| Type | Description |
|---|---|
| Int/Float | Returns the current numeric value. |
Example
num = 42 result = num.to_number() // Output: 42 print result
Notes
- This method is used for explicit digitization in chained scenarios.