digit_to_word 1.2.1 digit_to_word: ^1.2.1 copied to clipboard
Convert digits to their english word representations. 4235 becomes four thousand two hundred thirty-five, etc.
int to a
String representing the english words for said number.
1 -> one 25 -> twenty-five 857 -> eight hundred fifty-seven 43021 -> forty-three thousand twenty-one
Getting Started #
Install the package then simply call
var num = 954; var numberAsString = DigitToWord.translate(num); print(numberAsString) /// nine hundred fifty-four