{"id":21769428,"url":"https://github.com/adamfisher/romannumeral","last_synced_at":"2026-03-05T08:02:41.117Z","repository":{"id":116507489,"uuid":"42369827","full_name":"adamfisher/RomanNumeral","owner":"adamfisher","description":"A numeric type representing roman numerals.","archived":false,"fork":false,"pushed_at":"2023-06-10T03:13:51.000Z","size":104,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T20:14:45.467Z","etag":null,"topics":["math","roman-number","roman-number-converter","roman-numerals"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adamfisher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-12T19:19:13.000Z","updated_at":"2023-06-23T22:37:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f36679b-247e-473d-80e3-b8a046c47a38","html_url":"https://github.com/adamfisher/RomanNumeral","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamfisher%2FRomanNumeral","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamfisher%2FRomanNumeral/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamfisher%2FRomanNumeral/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamfisher%2FRomanNumeral/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamfisher","download_url":"https://codeload.github.com/adamfisher/RomanNumeral/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741922,"owners_count":21154409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["math","roman-number","roman-number-converter","roman-numerals"],"created_at":"2024-11-26T14:08:42.401Z","updated_at":"2026-03-05T08:02:36.007Z","avatar_url":"https://github.com/adamfisher.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![](https://raw.githubusercontent.com/adamfisher/RomanNumeral/master/icon.png) RomanNumeral\nThis is a C# .NET data type representation of the numeric system used in ancient Rome, employing combinations of letters from the Latin alphabet. Permissible values fall within the range of 1 - 3,999.\n\nThis package is available as a [**Nuget package**](https://www.nuget.org/packages/RomanNumeral) on nuget.org.\n\n```Math\nI, II, III, IV, V, VI, VII, VIII, IX, X ...\n```\n\n## Getting Started\n\n\n### Creation\n\nSeveral convenience constructors give you the ability to create a roman numeral data type using either a numeric value or a roman numeral string. Once a `RomanNumeral` object is created, its value is static for the duration of its lifetime.\n\n```csharp\nvar numberOne = new RomanNumeral(411);\t\t// CDXI\nvar numberTwo = new RomanNumeral(\"MCMXC\");\t// 1990\nConsole.WriteLine(new RomanNumeral(31));\t// XXXI\n```\n\n### Conversion\n\nConvert a roman numeral string to a numeric value.\n\n```csharp\nint value;\nif (RomanNumeral.TryParse(romanNumeral, out value))\n{\n\t// Do something with the converted value.\n}\n```\n\n### Math\n\nYou can treat a RomanNumeral type just like you would treat any other numeric type to perform math operations.\n\n```csharp\nvar numberOne = new RomanNumeral(10);\nvar numberTwo = new RomanNumeral(5);\n\nConsole.WriteLine(numberOne * numberTwo);\t\t// L\nConsole.WriteLine(numberOne / numberTwo);\t\t// II\nConsole.WriteLine(numberOne + numberTwo);\t\t// XV\nConsole.WriteLine(numberOne - numberTwo);\t\t// V\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamfisher%2Fromannumeral","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamfisher%2Fromannumeral","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamfisher%2Fromannumeral/lists"}