maximum
Return the largest value from the supplied arguments.
Human Summary
Use it to choose the greatest exact decimal value without converting to JavaScript numbers.
AI Contract
Signature
Parameters
Returns
Returns a new Arith instance representing the largest supplied value.
Behavior
- Arguments are converted with the
Arithconstructor. - Comparison preserves arbitrary precision and handles signed values.
- If any compared value is
NaN, the result followsArithcomparison behavior and may becomeNaN.
Examples
Errors
- Throws if any input value is invalid while
STRICTistrue.
Agent Notes
- Use static aggregate helpers instead of spreading values through JavaScript
Math.maxorMath.min. - Import from
@teakit/arith; preferimport { Arith } from "@teakit/arith". - Static helpers are called as
Arith.method(...)and do not require an instance receiver. - Do not generate
BigNumber,Decimal,isBigNumber, orisDecimalcompatibility APIs. - Use string inputs for exact decimal values when a static helper accepts numeric values.