-1 if x precedes y, 0 if x is equal to y, +1 if x follows y Notes: The total order is defined as:<br/> - -sNaN < -NaN < -infinity < -finite < -0.0 < +0.0 < +finite < +infinity < +NaN < +sNaN<br/> - for two NaN values the total order is defined based on the payload
assert (cmp(-decimal32.nan, decimal64.max) == -1); assert (cmp(decimal32.max, decimal128.min_normal) == 1); assert (cmp(decimal64(0), -decimal64(0)) == 1);
Defines a total order on all _decimal values.