greaterThanDecStr static method

bool greaterThanDecStr(
  1. String a,
  2. String b
)

a是否大于b

Implementation

static bool greaterThanDecStr(String a, String b) {
  return Decimal.parse(a) > Decimal.parse(b);
}