MCPcopy Index your code
hub / github.com/formatjs/formatjs / ToRawFixedFn

Function ToRawFixedFn

packages/ecma402-abstract/NumberFormat/ToRawFixed.ts:11–13  ·  view source on GitHub ↗
(n: Decimal, f: number)

Source from the content-addressed store, hash-verified

9
10//IMPL: Helper function to calculate raw fixed value
11function ToRawFixedFn(n: Decimal, f: number) {
12 return n.times(getPowerOf10(-f))
13}
14
15//IMPL: Helper function to find n1 and r1
16function findN1R1(x: Decimal, f: number, roundingIncrement: number) {

Callers 2

findN1R1Function · 0.85
findN2R2Function · 0.85

Calls 1

timesMethod · 0.80

Tested by

no test coverage detected