ToDecimal
ToDecimal Function
Converts the input value to a 12-byte decimal number ranging from positive 79,228,162,514,264,337,593,543,950,335 to negative 79,228,162,514,264,337,593,543,950,335. The Decimal type is appropriate for financial calculations requiring large numbers of significant integral and fractional digits and no round-off errors.
Syntax
ToDecimal(scalar Value)
Arguments
| Argument | Description |
|---|---|
scalar Value | Single number to be converted |
Examples:
ToDecimal(1/45)
Returns the value as decimal data type.