LinkeEngineering.NumeriRomani 1.1.3

dotnet add package LinkeEngineering.NumeriRomani --version 1.1.3
                    
NuGet\Install-Package LinkeEngineering.NumeriRomani -Version 1.1.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LinkeEngineering.NumeriRomani" Version="1.1.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LinkeEngineering.NumeriRomani" Version="1.1.3" />
                    
Directory.Packages.props
<PackageReference Include="LinkeEngineering.NumeriRomani" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LinkeEngineering.NumeriRomani --version 1.1.3
                    
#r "nuget: LinkeEngineering.NumeriRomani, 1.1.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LinkeEngineering.NumeriRomani@1.1.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LinkeEngineering.NumeriRomani&version=1.1.3
                    
Install as a Cake Addin
#tool nuget:?package=LinkeEngineering.NumeriRomani&version=1.1.3
                    
Install as a Cake Tool

Numeri Romani

A modern .NET library for converting and validating Roman numerals in your applications.

Installation

Install Numeri Romani using the NuGet Package Manager.

Restrictions

The library currently supports integers in the range from 0 to 499,999.

Features

Format Integers as Roman Numerals

Option 1: Extension method for int

Use the ToRoman() extension method to easily convert an integer to its Roman numeral representation:

using LinkeEngineering.NumeriRomani;

int number = 123;

string roman = number.ToRoman();
// assigns "CXXIII"
Option 2: Using RomanNumeralsFormatter

For advanced formatting, use the RomanNumeralsFormatter with String.Format(). Supported format strings are: empty, "g", "G", or "R".

using LinkeEngineering.NumeriRomani;

int number = 123;

RomanNumeralsFormatter formatter = new();
string roman = String.Format(formatter, "{0:R}", number);
// assigns "CXXIII"

Parse Roman Numerals to Integers

Option 1: Parsing With ParseRoman()

Use the extensions method ParseRoman() to convert a Roman numeral string to its integer value:

using LinkeEngineering.NumeriRomani;

string roman = "CXXIII";

int number1 = roman.ParseRoman()
// assigns 123
Option 2: Safe Parsing With TryParseRoman()

Use the extension method TryParseRoman() to safely parse a Roman numeral string to its integer value:

using LinkeEngineering.NumeriRomani;

string roman = "CXXIII";

bool isSuccess = roman.TryParseRoman(out int number);
// returns true and assigns 123 to number

License

This library is licensed under the MIT License, with additional terms restricting the use of the original package name for modified versions. Please refer to the license file for details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on LinkeEngineering.NumeriRomani:

Package Downloads
LinkeEngineering.CalendrierRepublicain

A .NET 8 library for converting, calculating, and formatting dates in the French Republican calendar. Includes a custom calendar implementation and formatter for seamless integration with .NET date and time APIs.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.3 99 1/24/2026
1.1.2 200 10/10/2025
1.1.0 394 1/25/2025
1.0.2 365 1/25/2025