Files
number_zj/20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/toFixed.d.ts
毛财君 197b38ca6f 1
2023-07-06 17:37:33 +08:00

16 lines
412 B
TypeScript

/**
* 将数值四舍五入并格式化为固定小数位的字符串
* @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