Readonly
oneThe number one.
For NumberOps<number>
, this is 1
. For NumberOps<Decimal>
, it's new Decimal(1)
Readonly
zeroThe number zero.
For NumberOps<number>
, this is 0
. For NumberOps<Decimal>
, it's new Decimal(0)
Format a coefficient number.
For NumberOps<number>
, this is .toString()
.
Convert to a native Javascript number, best-effort.
Might return infinity or NaN if the original number isn't in range.
Generated using TypeDoc
Basic operations for a number type. All polynomial operations are constructed based on these.
We provide implementations for:
number
, of course