|
Dynamic Fraction Library 1.0.0
Reference-counted arbitrary precision rational number library (MIT OR Unlicense)
|
Functions for comparing arbitrary precision integers. More...
Functions | |
| int | di_compare (di_int a, di_int b) |
| Compare two integers. | |
| bool | di_eq (di_int a, di_int b) |
| Test if two integers are equal. | |
| bool | di_lt (di_int a, di_int b) |
| Test if first integer is less than second. | |
| bool | di_le (di_int a, di_int b) |
| Test if first integer is less than or equal to second. | |
| bool | di_gt (di_int a, di_int b) |
| Test if first integer is greater than second. | |
| bool | di_ge (di_int a, di_int b) |
| Test if first integer is greater than or equal to second. | |
| bool | di_is_zero (di_int big) |
| Test if integer is zero. | |
| bool | di_is_negative (di_int big) |
| Test if integer is negative. | |
| bool | di_is_positive (di_int big) |
| Test if integer is positive (> 0) | |
| bool | di_is_one (di_int big) |
| Test if integer equals one. | |
Functions for comparing arbitrary precision integers.
Compare two integers.
| a | First integer (may be NULL) |
| b | Second integer (may be NULL) |
Definition at line 1305 of file dynamic_int.h.
Test if two integers are equal.
| a | First integer (may be NULL) |
| b | Second integer (may be NULL) |
Definition at line 1333 of file dynamic_int.h.
Test if first integer is greater than or equal to second.
| a | First integer (may be NULL) |
| b | Second integer (may be NULL) |
Definition at line 1349 of file dynamic_int.h.
Test if first integer is greater than second.
| a | First integer (may be NULL) |
| b | Second integer (may be NULL) |
Definition at line 1345 of file dynamic_int.h.
| bool di_is_negative | ( | di_int | big | ) |
Test if integer is negative.
| big | Integer to test (may be NULL) |
Definition at line 1358 of file dynamic_int.h.
| bool di_is_one | ( | di_int | big | ) |
Test if integer equals one.
| big | Integer to test (may be NULL) |
Definition at line 1368 of file dynamic_int.h.
| bool di_is_positive | ( | di_int | big | ) |
Test if integer is positive (> 0)
| big | Integer to test (may be NULL) |
Definition at line 1363 of file dynamic_int.h.
| bool di_is_zero | ( | di_int | big | ) |
Test if integer is zero.
| big | Integer to test (may be NULL) |
Definition at line 1353 of file dynamic_int.h.
Test if first integer is less than or equal to second.
| a | First integer (may be NULL) |
| b | Second integer (may be NULL) |
Definition at line 1341 of file dynamic_int.h.
Test if first integer is less than second.
| a | First integer (may be NULL) |
| b | Second integer (may be NULL) |
Definition at line 1337 of file dynamic_int.h.