amis-rpc-design/node_modules/@rc-component/mini-decimal/lib/MiniDecimal.d.ts
2023-10-07 19:42:30 +08:00

12 lines
543 B
TypeScript

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