Retro Rocket OS
Loading...
Searching...
No Matches
BIGCMP Function
BIGCMP(string-expression, string-expression)

Compares two arbitrary precision integers provided as decimal strings.


Examples

PRINT BIGCMP("100", "50")

Produces 1.

PRINT BIGCMP("42", "42")

Produces 0.

PRINT BIGCMP("-10", "5")

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$