shiftedBy
Returns the receiver multiplied by 10 raised to the supplied integer power.
API Reference
Signature
Parameters
Returns
Returns a new Arith instance.
Throws
- Throws if
nis not an integer in the safe supported range.
Agent Contract
Agent Notes
- Prefer
shiftedByover manual string decimal-point manipulation. - 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.