| C-Extensions / C API functions | |
Compares two decimal values.
mint deccmp(dec_t *n1, struct decimal *n2);
| Code | Description |
|---|---|
| 0 | The two values are identical. |
| 1 | The first value is greater than the second value. |
| -1 | The first value is less than the second value. |
| -2 | Either value is null. |