Monetra.Core
1.0.2
dotnet add package Monetra.Core --version 1.0.2
NuGet\Install-Package Monetra.Core -Version 1.0.2
<PackageReference Include="Monetra.Core" Version="1.0.2" />
<PackageVersion Include="Monetra.Core" Version="1.0.2" />
<PackageReference Include="Monetra.Core" />
paket add Monetra.Core --version 1.0.2
#r "nuget: Monetra.Core, 1.0.2"
#:package Monetra.Core@1.0.2
#addin nuget:?package=Monetra.Core&version=1.0.2
#tool nuget:?package=Monetra.Core&version=1.0.2
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 | Versions 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. |
-
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.
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.