class Num

Class containing number helper methods.

Methods

static string
arabic2roman(int $int)

Converts arabic numerals (1-3999) to roman numerals.

static int
roman2arabic(string $str)

Converts roman numerals (I-MMMCMXCIX) to arabic numerals.

Details

at line 27
static string arabic2roman(int $int)

Converts arabic numerals (1-3999) to roman numerals.

Parameters

int $int Arabic numeral to convert

Return Value

string

at line 83
static int roman2arabic(string $str)

Converts roman numerals (I-MMMCMXCIX) to arabic numerals.

Parameters

string $str Roman numeral to convert

Return Value

int