# cmp

cmp(x,y)

Return -1, 0, or 1 depending on whether `x`

is less than, equal to, or greater than `y`

, respectively. Uses the total order implemented by `isless`

. For floating-point numbers, uses `<`

but throws an error for unordered arguments.

## Examples

## See Also

cmp, float, get_bigfloat_precision, get_rounding, get_zero_subnormals, isapprox, maxintfloat, mod2pi, nextfloat, precision, prevfloat, rationalize, round, set_bigfloat_precision, set_rounding, set_zero_subnormals, significand, with_bigfloat_precision, with_rounding,## User Contributed Notes

### Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.