Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter FiveGeneral Functions (continued)

RomanToInteger Function

Overview

The RomanToInteger function converts a string containing a roman number to an integer.

Syntax/Parameters

Syntax

int = RomanToInteger ( string value );

Parameters

value

A string containing a roman number.

Return Value

Returns an int containing the integer equivalent of value or 0 on failure. Use the GetLastError function to retrieve error information.

Remarks

Roman numbers 1 through 99 are supported. Roman numbers cannot be negative. If the string parameter cannot be converted to an integer, the GetLastError function will return ERROR_SYNTAX.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic