Comparison function

int compare (const Fix& a, const Fix& b)

Compare two Fix numbers. Return -1 if a < b, 0 if a = b, 1 if a > b.

The following functions are for use with the error condition fields:

int ovf occurred()

Return TRUE if an overflow has occurred as the result of some operation like addition or assignment.

int invalid()

Return TRUE if the current value of the Fix number is invalid due to it having an improper precision format, or if some operation caused a divide by zero.

int dbz()

Return TRUE if a divide by zero error occurred.

void clear errors()

Reset all error bit fields to zero.