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() }
}
}Huge.sign(a) -> int
Returns the sign of the value: -1, 0, or 1.
program Demo {
handler Step phase Update {
if Huge.sign(balance) < 0 { warn() }
}
}