std:math/Integer
std:math/Integer
Section titled “std:math/Integer”Canonical occurrence:
protos/lib/math/Integer.protos· Protos revision:e99b712ecf658a527b1fe82c8beba2c1286d8dc9.
Exact mathematical algorithms over ordinary unbounded Core Integer values.
Observable top-level slots
Section titled “Observable top-level slots”This page lists the complete mechanically observable top-level slot inventory required by D067. Authored documentation, when present, is canonical D062 prose; mechanical presence alone does not create a stability or compatibility promise.
factorial
Section titled “factorial”Returns the exact factorial of a non-negative ordinary Integer.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
n -
Rest parameter: none
-
Source occurrence:
protos/lib/math/Integer.protos:69 -
Exact source page: open in the source browser
Returns the non-negative greatest common divisor of two ordinary Integers.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
a,b -
Rest parameter: none
-
Source occurrence:
protos/lib/math/Integer.protos:19 -
Exact source page: open in the source browser
Returns the non-negative least common multiple of two ordinary Integers.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
a,b -
Rest parameter: none
-
Source occurrence:
protos/lib/math/Integer.protos:48 -
Exact source page: open in the source browser
Returns the exact non-negative-integer power using exponentiation by squaring.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
base,exponent -
Rest parameter: none
-
Source occurrence:
protos/lib/math/Integer.protos:105 -
Exact source page: open in the source browser
powMod
Section titled “powMod”Returns canonical mathematical modular exponentiation for a positive modulus.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
base,exponent,modulus -
Rest parameter: none
-
Source occurrence:
protos/lib/math/Integer.protos:137 -
Exact source page: open in the source browser
Exact module source · Standard-library API · Standard library overview