romanice 1.0.0 copy "romanice: ^1.0.0" to clipboard
romanice: ^1.0.0 copied to clipboard

outdated

A Dart library for converting to/from Roman numerals, e.g., `3888`↔`MMMDCCCLXXXVIII`, `38888`↔`ↂↂↂↁↀↀↀⅮⅭⅭⅭⅬⅩⅩⅩⅤⅠⅠⅠ`

romanice - Convert to/from Roman numerals #

Version Build Status Coverage Status License

A Dart library for converting to/from Roman numerals, e.g., 3888MMMDCCCLXXXVIII, 38888ↂↂↂↁↀↀↀⅮⅭⅭⅭⅬⅩⅩⅩⅤⅠⅠⅠ

Usage #

See example/romanice_example.dart

Standard - I, V, X, L, C, D, M #

final Romanice standardConverter = Romanice();

final String roman = standardConverter.toRoman(3888);
// roman == 'MMMDCCCLXXXVIII'

final int decimal = standardConverter.fromRoman('MMMCMXCIX');
// decimal == 3999

Unicode - , , , , , , , , #

final Romanice unicodeConverter = Romanice.unicode();

final String roman = unicodeConverter.toRoman(38888);
// roman == 'ↂↂↂↁↀↀↀⅮⅭⅭⅭⅬⅩⅩⅩⅤⅠⅠⅠ'

final int decimal = unicodeConverter.fromRoman('ↂↂↂↀↂⅭↀⅩⅭⅠⅩ');
// decimal == 39999

Syntax #

Romanice([List<String> _symbols]) #

_symbols - List of Roman numeral symbols representing the character set. If omitted, assumes the standard symbols ['I', 'V', 'X', 'L', 'C', 'D', 'M'].

See documentation for more

License #

MIT

4
likes
0
pub points
55%
popularity

Publisher

verified publisherdart.dkinom.dev

A Dart library for converting to/from Roman numerals, e.g., `3888`↔`MMMDCCCLXXXVIII`, `38888`↔`ↂↂↂↁↀↀↀⅮⅭⅭⅭⅬⅩⅩⅩⅤⅠⅠⅠ`

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on romanice