owlcub-academy/node_modules/@formatjs/ecma402-abstract/NumberFormat/ComputeExponentForMagnitude...

9 lines
480 B
TypeScript

import Decimal from 'decimal.js';
import { NumberFormatInternal } from '../types/number';
/**
* The abstract operation ComputeExponentForMagnitude computes an exponent by which to scale a
* number of the given magnitude (power of ten of the most significant digit) according to the
* locale and the desired notation (scientific, engineering, or compact).
*/
export declare function ComputeExponentForMagnitude(internalSlots: NumberFormatInternal, magnitude: Decimal): number;