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

Dart 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/roman_numerals.dart';

RomanNumerals.toDecimal("XLII"); => returns 42

RomanNumerals.toRoman(13); => returns XIII

RomanNumerals.checkIfValid("XXXX"); => returns false

Changelog #

  • 1.0.2 - the code style is now closer to Dart's.
0
likes
20
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

BSD-2-Clause (license)

More

Packages that depend on roman_numerals