项目作者: jbenner-radham

项目描述 :
A coding exercise.
高级语言: JavaScript
项目地址: git://github.com/jbenner-radham/node-roman-numeral-kata.git
创建时间: 2019-02-21T20:33:21Z
项目社区:https://github.com/jbenner-radham/node-roman-numeral-kata

开源协议:MIT License

下载


node-roman-numeral-kata

build
license

A coding exercise.

Exercise Description

In this exercise we will create a converter that will accept a number representation in
Roman numerals and convert it to Arabic numerals.

Roman numerals, as used today, employ seven symbols, each with a fixed integer value, as follows:

Symbol Value
I 1
V 5
X 10
L 50
C 100
D 500
M 1000

This numeral system also employs subtractive notation; which is an early form of positional
notation used with Roman numerals as a shorthand to replace four or five characters in a numeral
representing a number with usually just two characters.

Using subtractive notation the numeral VIIII becomes simply IX. Without
subtractive notation, XIV represents the same number as XVI (16 in
Arabic numerals). With the introduction of subtractive notation, XIV (14) no
longer represents the same number as XVI but rather is an alternative way of writing XIIII.

Install

  1. $ yarn install # Or alternatively: `npm install`

Testing

  1. $ yarn test # Or alternatively: `npm test`

See Also

License

The MIT License (Expat). See the license file for details.