roman_numerals 1.0.0
roman_numerals: ^1.0.0 copied to clipboard
Converts integer decimal numbers to roman numerals and vice versa. Also includes a function to check if a string represents a valid roman number.
#RomanNumerals
RomanNumerals takes care of simple roman notation conversion for you. All in the glory of the Dart Language.
##Install from Dart Pub Repository
Include the following in your pubspec.yaml:
dependencies:
roman_numerals: any
Then run the Pub Package Manager in Dart Editor (Tool > Pub Install). If you are using a different editor, run the command (comes with the Dart SDK):
pub install
Usage #
import 'package:roman_numerals';
RomanNumerals.to_decimal("XLII") => returns 42
RomanNumerals.to_roman(13) => returns XIII
RomanNumerals.check_if_valid("XXXX") => returns false