Skip to content

rcemper/PR_Roman-Numeral-Converter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ObjectScript Roman Numeral Converter

Gitter

Overview

This is an ObjectScript function to convert numbers to roman numerals. It also takes a dynamic array of numbers and turns them into roman numerals.

Features

Takes in a number, or dynamic array of numbers, and turns them into roman numerals. Works up to 3,999. If you find a number that isn't accurate, please report it in the issues tab.

There is only one parameter:

  • val (Required String): The number or dynamic array to be converted.

Example Usage

USER> write ##class(RomanNumerals.RomanNumerals).Translate("12")
XII

USER> set x = ["12","13"]
USER> write ##class(RomanNumerals.RomanNumerals).Translate(x)
11@%Library.DynamicArray

Errors will be returned. If you don't use a number inside of a string, it won't respond with anything.

Future Plans

Backwards translation support to convert roman numerals to a number. Tweaking of conversion logic to support any roman numeral issues, especially over 3,999.

Version history

2019-07-23 - v1.0 - Initial commit of function with features outlined in description

Docker

Prerequisites

Make sure you have git and Docker desktop installed.

Installation

Clone/git pull the repo into any local directory

$ git clone https://github.com/rcemper/PR_CosNumberTranslate.git
$ docker compose up -d && docker compose logs -f

To open IRIS Terminal do:

$ docker-compose exec iris iris session iris 
USER>

or using WebTerminal
http://localhost:42773/terminal/

To access IRIS System Management Portal
http://localhost:42773/csp/sys/UtilHome.csp

About

📜 Converts numbers into roman numerals using ObjectScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ObjectScript 93.9%
  • Shell 4.2%
  • Dockerfile 1.9%