divideDecStr static method

Decimal divideDecStr(
  1. String a,
  2. String b
)

Implementation

static Decimal divideDecStr(String a, String b) {
  Rational value = Decimal.parse(a) / Decimal.parse(b);
  return value.toDecimal();
}