/Ronum

Just another Roman numerals converter

Primary LanguageJavaScript

#Ronum

Just another Roman numerals converter, input a number and get a Roman numeral string, input a Roman numeral string and get a number, easy as shit.


##Usage

###Ronum.cnov(num)

<script type="text/javascript" src="ronum.js"></script>
<script type="text/javascript">
	var ronum = new Ronum();
	console.log(ronum.conv(1949));       // MCMXLIX
	console.log(ronum.conv('MCMXLIX'));  // 1949
</script>

p.s. this converter only handle numbers from 1 to 4999 at the moment


##License

this software is released under WTFPL

Copyright (C) 2015 Kej Jang <kejjang@gmail.com>
	
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See below for more details.
	
	
           DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                   Version 2, December 2004

Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

           DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
  TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  0. You just DO WHAT THE FUCK YOU WANT TO.