You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
412 B
16 lines
412 B
5 months ago
|
/**
|
||
|
* 将数值四舍五入并格式化为固定小数位的字符串
|
||
|
* @param num 数值/字符串
|
||
|
* @param digits 小数保留位数
|
||
|
*/
|
||
|
export declare function toFixed(num: number | string | null, digits?: number): string;
|
||
|
export declare function toFixed(num: any, digits?: number): string;
|
||
|
|
||
|
declare module './ctor' {
|
||
|
interface XEUtilsMethods {
|
||
|
toFixed: typeof toFixed;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default toFixed
|