Next: , Previous: Integer Operations, Up: Numbers


21.2.8 Comparison Predicates

— Scheme Procedure: =

Return #t if all parameters are numerically equal.

— Scheme Procedure: <

Return #t if the list of parameters is monotonically increasing.

— Scheme Procedure: >

Return #t if the list of parameters is monotonically decreasing.

— Scheme Procedure: <=

Return #t if the list of parameters is monotonically non-decreasing.

— Scheme Procedure: >=

Return #t if the list of parameters is monotonically non-increasing.

— Scheme Procedure: zero?

Return #t if z is an exact or inexact number equal to zero.

— Scheme Procedure: positive?

Return #t if x is an exact or inexact number greater than zero.

— Scheme Procedure: negative?

Return #t if x is an exact or inexact number less than zero.