ancient_number_converter 0.0.1
ancient_number_converter: ^0.0.1 copied to clipboard
The ancient_number_converter library allows you to format and parse ancient numbers.
The ancient_number_converter library allows you to format and parse ancient numbers.
Features #
You can format and parse the numbers of the Romans, ancient Egyptians and Mayas.
Getting started #
The interface is AncientNumberConverter which has the methods String? format(num number) and
double? tryParse(String number). The available implementation are:
HieroglyphConverterMayanNumberConverterRomanNumberConverter
Usage #
final roman = RomanNumberConverter();
final year = 'MMXXV';
print('Example ${roman.format(1)}:');
print('This lib was first published in $year (${roman.tryParse(year)?.toInt()})');