BIGCMP(string-expression, string-expression)
Compares two arbitrary precision integers provided as decimal strings.
Examples
PRINT BIGCMP("100", "50")
Produces 1.
Produces 0.
Produces -1.
Notes
- Inputs must be valid base-10 integer strings.
- Returns:
- 1 if first value is greater than second
- 0 if both values are equal
- -1 if first value is less than second
- Supports values far beyond 64-bit limits.
- Negative numbers are supported.
See also: BIGADD$ · BIGSUB$ · BIGMUL$ · BIGDIV$ · BIGMOD$