addDec static method

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

加 (精确相加,防止精度丢失). add (without loosing precision).

Implementation

static Decimal addDec(num a, num b) {
  return addDecStr(a.toString(), b.toString());
}