round.d.ts 350 B

123456789101112131415
  1. /**
  2. * 对数字进行四舍五入
  3. * @param num 数值/字符串
  4. * @param digits 小数保留位数
  5. */
  6. export declare function round(num: number, digits?: number): number;
  7. export declare function round(num: any, digits?: number): number;
  8. declare module './ctor' {
  9. interface XEUtilsMethods {
  10. round: typeof round;
  11. }
  12. }
  13. export default round