digit_to_word 1.2.1 copy "digit_to_word: ^1.2.1" to clipboard
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.

example/main.dart

library digit_to_word.example;

import 'package:digit_to_word/digit_to_word.dart';

void main() {
  // Prints the String 'one';
  print(DigitToWord.translate(1));

  // Prints the String 'one thousand two hundred thirty-four'
  print(DigitToWord.translate(1234));

  // Prints the String 'one thousand two hundred thirty four'
  print(DigitToWord.translate(1234, withDashes: false));
}
4
likes
130
pub points
27%
popularity

Publisher

verified publisherkalebhermes.com

Convert digits to their english word representations. 4235 becomes four thousand two hundred thirty-five, etc.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

intl

More

Packages that depend on digit_to_word