Crate big_num_math

Source
Expand description

Allows to compute on big numbers. No negative numbers support. Provides only some basic mathematical functions.

Structs§

PlacesRow
PlacesRow represents row of decimal places starting at ones (0 index).

Enums§

Oom
Order of magnitude enumeration.
OomKind
Order of magnitude computational kind.
Rel
Relation enumeration.
RelDec
Decimal relation enumeration.

Constants§

SQUARE_ROOT_TEN_COMPARATOR
Represents 1,000 numbers of √10 ≈ 3.16.

Functions§

add
Computes addend1 and addend2 sum.
divrem
Computes dividend and divisor ratio and remainder.
heron_sqrt
Computes integer square root of num.
mul
Computes factor1 and factor2 product.
ord_of_mag
Computes order of magnitude for num and kind.
pow
Computes power pow of base.
rel
Checks relation of num to comparand.
rel_dec
Compares decimal places count of num and comparand.
sub
Computes minuend and subtrahend difference.

Type Aliases§

DecCnt
Decimal places count.