Method EinvoiceDecimal():cmp() Professional

Compares the value with another value.

Syntax
:cmp( <xOther> ) --> nResult
Parameters
<xOther>
The value to compare with, specified as a numeric value, a character string or an EinvoiceDecimal object.
Return

-1 if the value is less than <xOther>, 1 if the value is greater than <xOther>, or 0 if both values are equal.

Description

Compares the value of the object with <xOther>. The comparison is exact, so no tolerance for rounding errors is needed or applied.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.