UNPKG

427 BTypeScriptView Raw
1/**
2 * 将数值四舍五入并格式化为固定小数位的字符串
3 * @param num 数值/字符串
4 * @param digits 小数保留位数
5 */
6export declare function toFixed(num: number | string | null, digits?: number): string;
7export declare function toFixed(num: any, digits?: number): string;
8
9declare module './ctor' {
10 interface XEUtilsMethods {
11 toFixed: typeof toFixed;
12 }
13}
14
15export default toFixed