The jomDecimalCompare call, shown in the following example, compares two
int jomDecimalCompare(const DskDecimal* pDskDecimal1,
const DskDecimal* pDskDecimal2);
The parameters for this call are listed in the following table.
| Parameter | Description |
|---|---|
| pDskDecimal1 | First Decimal value that is to be compared |
| pDskDecimal2 | Second Decimal value that is to be compared |
The jomDecimalCompare call returns the values listed in the following table.
| Returned Value | Description |
|---|---|
| 0 | Decimal1 is equal to Decimal2 |
| -1 | Decimal1 is less than Decimal2 |
| 1 | Decimal1 is greater than Decimal2 |