Skip to content

conversion-library / romanToInt

Function: romanToInt()

ts
function romanToInt(str: string): number

romanToInt

version: v0.0.11+

Parameters

str: string

Enter roman

Returns

number

int

Example

ts
romanToInt('MMMDCCXLIX')
// 3749

Defined in

lib/intAndRoman.ts:66