subtractDec static method

Decimal subtractDec(
  1. num a,
  2. num b
)

减 (精确相减,防止精度丢失). subtract (without loosing precision).

Implementation

static Decimal subtractDec(num a, num b) {
  return subtractDecStr(a.toString(), b.toString());
}