Mathematical functions return values that are commonly needed for operations on mathematical data.
Each function also accepts arguments that can be implicitly converted to the specified type. For example, functions that accept approximate numeric types also accept integer types. SAP ASE converts the argument to the desired type.
SAP ASE provides error traps to handle domain or range errors. Use the arithabort and arithignore functions to specify how domain errors are handled.
This table displays examples using the floor, ceiling, and round mathematical functions.
Statement |
Result |
---|---|
|
123 123.000000 123.000000 -124.000000 -124.000000 123.00 |
|
124.000000 -123.000000 124.000000 -123.000000 124.00 |
|
123.4500 100.00 123.450000 100.000000 |