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

Function setNormalized

packages/effect/src/BigDecimal.ts:159–161  ·  view source on GitHub ↗
(self: BigDecimal, normalized: BigDecimal)

Source from the content-addressed store, hash-verified

157}
158
159const setNormalized = (self: BigDecimal, normalized: BigDecimal): BigDecimal =>
160 // Read through `self` so proxies that reuse wrappers return the same object on every call.
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)

Callers 2

makeNormalizedFunction · 0.85
normalizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected