1
This commit is contained in:
15
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/round.d.ts
vendored
Normal file
15
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/round.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* 对数字进行四舍五入
|
||||
* @param num 数值/字符串
|
||||
* @param digits 小数保留位数
|
||||
*/
|
||||
export declare function round(num: number, digits?: number): number;
|
||||
export declare function round(num: any, digits?: number): number;
|
||||
|
||||
declare module './ctor' {
|
||||
interface XEUtilsMethods {
|
||||
round: typeof round;
|
||||
}
|
||||
}
|
||||
|
||||
export default round
|
||||
Reference in New Issue
Block a user