SumOptions
SumOptions =
object
Defined in: sum.ts:4
How a total is accumulated.
Properties
Section titled “Properties”exact?
Section titled “exact?”
optionalexact?:boolean
Defined in: sum.ts:13
Whether to accumulate exactly, so the total is the number nearest the
true mathematical sum.
Defaults to true. Turn it off only for a measured hot path whose terms
share a sign and a magnitude — the case where a naive running total is
already close to exact. Length alone is not a reason; see sumPrecise.