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

Function bigDecimalScaleValueAtScale

packages/effect/src/Schema.ts:12203–12205  ·  view source on GitHub ↗
(bd: BigDecimal_.BigDecimal, scale: number)

Source from the content-addressed store, hash-verified

12201const bigDecimalInvalidOrderedConstraintsError = "Unable to derive an arbitrary for the ordered BigDecimal constraints"
12202
12203function bigDecimalScaleValueAtScale(bd: BigDecimal_.BigDecimal, scale: number): bigint {
12204 return BigDecimal_.scale(bd, scale).value
12205}
12206
12207function bigDecimalMinValueAtScale(
12208 minimum: BigDecimal_.BigDecimal,

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected