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

outdatedDart 1 only

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
0
likes
0
points
2
downloads

Publisher

unverified uploader

Weekly Downloads

Converts integer decimal numbers to roman numerals and vice versa. Also includes a function to check if a string represents a valid roman number.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on roman_numerals