API Reference › Huge › Huge.cmp
method

Huge.cmp

Huge.cmp(a, b) -> int

Compares two big numbers, returning -1, 0, or 1 as a is less than, equal to, or greater than b.

Example

program Demo {
  handler Step phase Update {
    if Huge.cmp(gold, price) >= 0 { buy() }
  }
}
← All symbols