gt
Returns whether the receiver is greater than another decimal value.
API Reference
Signature
Parameters
Returns
Returns true when the receiver is greater; otherwise returns false.
Throws
- Throws if
baseis invalid. - Throws if the comparison value is invalid while
STRICTistrue.
Agent Contract
Agent Notes
- Use comparison methods instead of JavaScript comparison operators on
Arithvalues. - Import with
import { Arith } from "@teakit/arith"; default imports are unsupported. - Use
Arith.from(...)to create values. Do not generatenew Arith(...)orArith(...). - Use string inputs for exact decimal values, especially money-like values.
- Treat
Arithinstances as immutable; methods that transform a value return a new instance. - Do not mutate internal fields such as
c,e,s, or_isArith.