longSiNumeral method

String longSiNumeral(
  1. num numericValue
)

Implementation

String longSiNumeral(num numericValue) {
  if (numericValue >= 1e12) {
    return "${numericValue ~/ 1e12} Trillion ${longSiNumeral(numericValue % 1e12)}";
  } else if (numericValue >= 1e9) {
    return "${numericValue ~/ 1e9} Billion ${longSiNumeral(numericValue % 1e9)}";
  } else if (numericValue >= 1e6) {
    return "${numericValue ~/ 1e6} Million ${longSiNumeral(numericValue % 1e6)}";
  } else if (numericValue >= 1e3) {
    return "${numericValue ~/ 1e3} Thousand ${longSiNumeral(numericValue % 1e3)}";
  } else {
    return numericValue.toString();
  }
}