divideDecString static method

String? divideDecString(
  1. String a,
  2. String b
)

除,返回十进制字符串。

Non-terminating quotients (e.g. 1/3) are truncated to 20 significant decimal places (see _divideDecimal) so the result is finite instead of throwing. 除数为 0 或解析失败返回 null。

Implementation

static String? divideDecString(String a, String b) {
  return _divideDecimal(a, b)?.toString();
}