SIGNIFICANTDIGITSFORDOUBLEEQUALITY option

Function

Specifies the number of significant digits to the right of the decimal in exponential notation are used in equality tests between two complex arithmetic expressions.

Allowed values

0 to 15

Scope

DBA permissions are not required to set this option. Can be set temporary, for an individual connection, or for the PUBLIC group. Takes effect immediately.

Default

0

Description

Because doubles are stored in binary (base 2) instead of decimal (base 10), this setting gives the approximate number of significant decimal digits used. If set to 0, all digits are used.

For example, when the option is set to 12, the following numbers compare as equal. When set to 13, they do not:

This option affects equality tests between two complex arithmetic expressions, not those done by the indexes.