formatToRMB method

String formatToRMB([
  1. int fixed = 2
])

格式化为大写人民币

Implementation

String formatToRMB([int fixed = 2]) {
  assert(fixed >= 0 && fixed <= 3);
  return MoneyForZh().toChinese(toStringAsFixed(fixed));
}