english_numerals 1.0.1 copy "english_numerals: ^1.0.1" to clipboard
english_numerals: ^1.0.1 copied to clipboard

A package to convert numbers to and from their English written form, with null safety and no dependency on flutter.

Simple package to transform numbers into English numerals without flutter dependency and with null safety, as opposed to other obsolete packages.

Features #

Only integer cardinals are currently available, in the non-inclusive range ]-10^66, 10^66[

Usage #

It can be used to create a Cardinal number from int or BigInt:

final other = Cardinal(999);
print(other.enUk); // "nine hundred and ninety-nine"
print(other.enUs); // "nine hundred ninety-nine"
print(other.toString()); // "nine hundred ninety-nine"

It can also be used the other way around to convert cardinal text to int and BigInt:

final uk = Cardinal("nine hundred and ninety-nine");
print(uk.toInt()); // "999"
final us = Cardinal("nine hundred ninety-nine");
print(us.toInt()); // "999"
2
likes
160
pub points
19%
popularity

Publisher

verified publisherel-darto.net

A package to convert numbers to and from their English written form, with null safety and no dependency on flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

meta

More

Packages that depend on english_numerals