MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / bignum

Method bignum

src/compute-engine/index.ts:915–917  ·  view source on GitHub ↗

Create an arbitrary precision number. * * The return value is an object with methods to perform arithmetic * operations: * - `toNumber()`: convert to a JavaScript `number` with potential loss of precision * - `add()` * - `sub()` * - `neg()` (unary minus) * - `mul()` * -

(a: string | number | bigint | BigDecimal)

Source from the content-addressed store, hash-verified

913 * Declare a new type in the current scope.
914 *
915 * By default, types are nominal. To declare a structural type, set
916 * `alias` to `true`.
917 *
918 * `fromStatement` marks the declaration as coming from a `DeclareType`
919 * statement: such a declaration may be replaced by a later `DeclareType`
920 * statement for the same name in the same scope (a re-run of the program).

Callers 12

roundToSignificantDigitsFunction · 0.45
number-theory.tsFile · 0.45
flattenBigScalarsFunction · 0.45
bigValsFunction · 0.45
arithmetic.tsFile · 0.45
bignumImMethod · 0.45
canonicalNumberStringFunction · 0.45
asBignumFunction · 0.45
applyFunction · 0.45
applyNFunction · 0.45
apply2Function · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected