Monetra.Core 1.0.2

dotnet add package Monetra.Core --version 1.0.2
                    
NuGet\Install-Package Monetra.Core -Version 1.0.2
                    
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="Monetra.Core" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Monetra.Core" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Monetra.Core" />
                    
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 Monetra.Core --version 1.0.2
                    
#r "nuget: Monetra.Core, 1.0.2"
                    
#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 Monetra.Core@1.0.2
                    
#: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=Monetra.Core&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Monetra.Core&version=1.0.2
                    
Install as a Cake Tool

Monetra.Core

High-performance .NET library for handling core financial types, arithmetic operations, and culture-aware currency formatting.

Monetra.Core is the foundational package for the Monetra ecosystem. It defines core financial types such as Money and Currency, provides precise arithmetic operations, culture-aware formatting, and integration interfaces for building advanced financial applications.

This package serves as the base for other Monetra subpackages and ensures consistent financial calculations across your .NET projects.


❤️ Support the Project

If you find this library useful, consider supporting its development:

👉 https://ko-fi.com/janlucakoerner

Your support helps maintain and improve the project 🙌


Key Features

  • Core financial types: Money, Currency
  • Precise arithmetic operations for monetary calculations
  • Culture-aware formatting for global applications
  • Integration interfaces for extending functionality in subpackages
  • Designed as the foundation for the Monetra ecosystem

Installation

Install via NuGet:

dotnet add package Monetra.Core

Usage Example

using Monetra.Core.Primitives;
using System.Globalization;

// Initialization
var left = Money.USD(1.5m);
var right = new Money(1.5m, Currency.USD);

// Arithmetic
var total = left + right;

// Culture-aware formatting
Console.WriteLine(total.ToString(CultureInfo.GetCultureInfo("en-US"))); // $3.00

License

This package is licensed under the Monetra.Core Free Edition License. You may use it freely, but modification or redistribution of the source code is not allowed.


❓ Support / Feedback

Thanks for using this project! If you’d like to report an issue or suggest an improvement, please use the links below.


🐛 Report a Bug

Found something not working as expected?

👉 https://gitlab.com/janlucakoerner/monetra/-/issues/new?issuable_template=Bug&labels=bug


💡 Request a Feature

Have an idea to improve the project?

👉 https://gitlab.com/janlucakoerner/monetra/-/issues/new?issuable_template=Feature&labels=feature


Please:

  • Search existing issues before creating a new one
  • Provide as much detail as possible
  • Include code samples when relevant

Thanks for helping improve the project 🙌

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 121 4/27/2026
1.0.1 118 3/11/2026
1.0.0 113 3/8/2026

v1.0.2 - 2026-04-27

- Added XML documentation across Monetra.Core public API to improve usability and maintainability.
- Updated Currency class — added NumericCode, renamed DecimalPlaces → MinorUnits, changed Symbols type, introduced Parse/TryParse, and made equality case-insensitive.
- Refactored Percentage into a record struct with factory-only creation, improved multiplier-based operations, added strategy-based Round(), renamed Of() → ApplyTo(), and removed legacy multiplier methods.
- Added financial rounding strategies (Ceiling, Floor, Cash, Composite) and built-in registry for common modes.