PRECISION option

Function

Specifies the maximum number of digits in the result of any decimal arithmetic, for queries on the catalog store only.

Allowed values

126

Default

126

Scope

Only PUBLIC setting allowed.

Description

Precision is the total number of digits to the left and right of the decimal point. The default PRECISION value is fixed at 126. SCALE specifies the minimum number of digits after the decimal point when an arithmetic result is truncated to the maximum specified by PRECISION, for queries on the catalog store.

NoteIn SQL Anywhere, the maximum value supported for the numeric function is 255. If the precision of the numeric function exceeds the maximum value supported, you see this error: The result datatype for function '_funcname' exceeds the maximum supported numeric precision of 255. Please set the proper value for precision in numeric function, 'location'

See also

“SCALE option”

For queries on the IQ store, see “MAX_CLIENT_NUMERIC_PRECISION option”