MiniDecimal.d.ts 543 B

1234567891011
  1. import BigIntDecimal from './BigIntDecimal';
  2. import NumberDecimal from './NumberDecimal';
  3. import type { DecimalClass, ValueType } from './interface';
  4. export { NumberDecimal, BigIntDecimal };
  5. export type { DecimalClass, ValueType };
  6. export default function getMiniDecimal(value: ValueType): DecimalClass;
  7. /**
  8. * Align the logic of toFixed to around like 1.5 => 2.
  9. * If set `cutOnly`, will just remove the over decimal part.
  10. */
  11. export declare function toFixed(numStr: string, separatorStr: string, precision?: number, cutOnly?: boolean): any;