MCPcopy Index your code
hub / github.com/Effect-TS/effect / roundTerminal

Function roundTerminal

packages/effect/src/BigDecimal.ts:361–364  ·  view source on GitHub ↗
(n: bigint)

Source from the content-addressed store, hash-verified

359 * @internal
360 */
361export const roundTerminal = (n: bigint): bigint => {
362 const pos = n >= bigint0 ? 0 : 1
363 return Number(`${n}`[pos]) < 5 ? bigint0 : bigint1
364}
365
366/**
367 * Provides a division operation on `BigDecimal`s.

Callers 1

divideWithPrecisionFunction · 0.85

Calls 1

NumberInterface · 0.85

Tested by

no test coverage detected