import { AbstractDecimal } from '../AbstractDecimal'; import { DecimalSPI } from '../DecimalSPI'; import { MathContext } from '../../MathContext'; import { RoundingMode } from '../../RoundingMode'; /** * Rescale the given number to the scale specified by the given math context. */ export declare function rescaleOp>(spi: DecimalSPI, a: D, context: MathContext): D; /** * Rescale a number represented via coefficient and exponent to the scale * defined by the given math context. */ export declare function rescaleCoefficientAndExponent>(spi: DecimalSPI, coefficient: C, exponent: number, context?: MathContext): D; /** * Calculate the exponent to use when applying a math context to a specific * number. * * @param spi * @param coefficient * @param exponent * @param context * @param defaultExponent */ export declare function calculateExponent>(spi: DecimalSPI, coefficient: C, exponent: number, context: MathContext, defaultExponent?: number): number; /** * Rescale the coefficient of the specified decimal. * * @param spi * @param coefficient * the current coefficient * @param exponent * the current exponent * @param newExponent * the exponent to rescale to * @param roundingMode * the rounding mode to use for the rescale */ export declare function rescaleCoefficient>(spi: DecimalSPI, coefficient: C, exponent: number, newExponent: number, roundingMode: RoundingMode): C; //# sourceMappingURL=rescalingOp.d.ts.map