@gzued/antd-compiled
Version:
Pre-bundled Ant Design 4.x and related dependencies for @gzued packages
24 lines (23 loc) • 769 B
TypeScript
/**
* Format string number to readable number
*/
export declare function trimNumber(numStr: string): {
negative: boolean;
negativeStr: string;
trimStr: string;
integerStr: string;
decimalStr: string;
fullStr: string;
};
export declare function isE(number: string | number): boolean;
/**
* [Legacy] Convert 1e-9 to 0.000000001.
* This may lose some precision if user really want 1e-9.
*/
export declare function getNumberPrecision(number: string | number): number;
/**
* Convert number (includes scientific notation) to -xxx.yyy format
*/
export declare function num2str(number: number): string;
export declare function validateNumber(num: string | number): boolean;
export declare function getDecupleSteps(step: string | number): string;