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