Skip to content

stp_number.dir@stp_number.h.dir@STP_Number_cmp

Andy Zhang edited this page Aug 7, 2026 · 2 revisions

STP_Number_cmp

F+F+++F+++F+++F+++F+++F+++F+++F+++F+++F+++F+++F+++F+++F+++F+++F+++F
  Function: STP_Number_cmp

  Summary:  Compares two numbers.

  Args:     STP_Number* lhs
              .
            STP_Number* rhs
              .

  Returns:  int
              1 if lhs > rhs, 0 if lhs == rhs, -1 if lhs < rhs.

  Requires: * lhs and rhs are not NULL.

  Note:     1. scales of lhs and rhs are considered.
F---F---F---F---F---F---F---F---F---F---F---F---F---F---F---F---F-F

Clone this wiki locally