API Reference › Huge › Huge.sign
method

Huge.sign

Huge.sign(a) -> int

Returns the sign of the value: -1, 0, or 1.

Example

program Demo {
  handler Step phase Update {
    if Huge.sign(balance) < 0 { warn() }
  }
}
← All symbols