todecimal()
Learn how to use the todecimal() function to convert the input expression to a decimal number representation.
Converts the input to a decimal number representation.
Syntax
todecimal(value)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| value | scalar | ✔️ | The value to convert to a decimal. |
Returns
If conversion is successful, result will be a decimal number.
If conversion isn’t successful, result will be null.
Example
print todecimal("123.45678") == decimal(123.45678)
Output
| print_0 |
|---|
| true |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.