Welcome Guest, Not a member yet? Register   Sign In
How to convert integer to Roman numerals?
#1

[eluser]Sanjay Sarvaiya[/eluser]
Hello friends,

I want to convert Integer value to Roman Numerals.
Actually I want to convert month number to Roman numerals.
any help appreciates
Thans.
#2

[eluser]solid9[/eluser]
Try to make an array map.

$roman = array(
1 => "I",
2 => "II",
3 => "III",
4 => "IV",
5 => "V"
);

It's just a hint above, just use your imagination.
#3

[eluser]Aken[/eluser]
If you only need roman numerals for that purpose, then just use an array reference like solid9 said.

If you want to actually calculate roman numerals for pretty much any number, then search around online - there's gotta be a function written for it by someone already.
#4

[eluser]Sanjay Sarvaiya[/eluser]
Thanks for your help.

I have done with the help of
http://www.php.net/manual/en/function.ba....php#92960




Theme © iAndrew 2016 - Forum software by © MyBB