Mathematical functions return values 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. Adaptive Server converts the argument to the desired type. See “Conversion error handling”.
Adaptive Server provides error traps to handle domain or range errors. Use the arithabort and arithignore functions to specify how domain errors are handled.
Table 16-1 displays examples using the floor, ceiling, and round mathematical functions.
Statement |
Result |
---|---|
|
|
|
|
|
|