Skip to content
Rodrigo Celso de Lima Porto edited this page Jan 13, 2026 · 1 revision

Converts a Roman numeral (text) to a number.

Syntax

Number.FromRoman(
    romanText as text
) as number

Parameters

  • romanText: A text string representing a Roman numeral.

Return Value

Returns a number corresponding to the Roman numeral. If the input contains invalid characters, an error is raised.

Remarks

  • Supports standard Roman numeral characters: I, V, X, L, C, D, M (case-insensitive).

Example

Number.FromRoman("XII")

Result

12

Clone this wiki locally