Skip to content

conversion-library / romanToInt

Function: romanToInt()

ts
function romanToInt(str: string): number

romanToInt

version: v0.0.11+

Parameters

str: string

罗马数字字符串

Returns

number

整数

Example

ts
romanToInt('MMMDCCXLIX')
// 3749

Defined in

lib/intAndRoman.ts:66