MCPcopy Create free account
hub / github.com/Effect-TS/effect / makeNormalized

Function makeNormalized

packages/effect/src/BigDecimal.ts:163–166  ·  view source on GitHub ↗
(value: bigint, scale: number)

Source from the content-addressed store, hash-verified

161 Object.defineProperty(self, "normalized", { value: normalized, writable: true, configurable: true }).normalized!
162
163const makeNormalized = (value: bigint, scale: number): BigDecimal => {
164 const o = make(value, scale)
165 return setNormalized(o, o)
166}
167
168/**
169 * Internal function used to create pre-normalized `BigDecimal`s.

Callers 3

makeNormalizedUnsafeFunction · 0.85
BigDecimal.tsFile · 0.85
normalizeFunction · 0.85

Calls 2

setNormalizedFunction · 0.85
makeFunction · 0.70

Tested by

no test coverage detected