Skip to content

mathMinus

高精度减法(支持多个参数连减)。

示例

ts
import { mathMinus } from '@base-web-kits/base-tools-ts';
mathMinus(1, 0.9); // => 0.1
mathMinus('1.1', '0.2'); // => 0.9
mathMinus(10, 1, 2, 3); // => 4  // 多参数连减: 10-1-2-3

版本

  • 1.0.0 新增