BlueDragonFly.FinanzasLib.Core 1.0.1

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

BlueDragonFly.FinanzasLib

Licencia: MIT .NET

Biblioteca .NET para realizar cálculos monetarios con exactitud decimal.

En lugar de depender de float o double, todas las operaciones se ejecutan internamente sobre centavos (long), eliminando los errores de redondeo propios de la aritmética de punto flotante.

Características

  • Money: tipo de valor inmutable para cantidades monetarias.
  • Conversiones seguras entre decimal y centavos.
  • Múltiples modos de redondeo (HalfUp por defecto).
  • Sistema de impuestos extensible con reglas porcentuales y fijas.
  • Catálogos de impuestos en memoria o desde JSON.
  • Modelo de facturación con descuentos, retenciones y cálculo de totales.
  • Sin dependencias de terceros: solo requiere .NET 10.

Requisitos

  • .NET 10 SDK

Instalación

dotnet add package BlueDragonFly.FinanzasLib.Core

Aún no se ha publicado en NuGet. Puedes compilar el proyecto localmente o referenciarlo directamente desde el código fuente.

Ejemplo rápido

using BlueDragonFly.FinanzasLib.Core;

Money unitPrice = Money.FromDecimal(9.99m);
int quantity = 5;

Money subtotal = Money.CalculateTotal(quantity, unitPrice);
Money tax = subtotal * 0.16m;
Money total = subtotal + tax;

Console.WriteLine($"Subtotal: {subtotal}");
Console.WriteLine($"Impuesto: {tax}");
Console.WriteLine($"Total:    {total}");

Estructura del repositorio

BlueDragonFly.FinanzasLib.Core/    # Núcleo de la biblioteca
BlueDragonFly.FinanzasLib.Demo/    # Aplicación de demostración
BlueDragonFly.FinanzasLib.Tests/   # Pruebas y ejemplos de uso
docs/                              # Documentación detallada

Documentación

La documentación completa de la API y ejemplos de uso está disponible en docs/Core.md.

Compilar

dotnet build BlueDragonFly.FinanzasLib.slnx

Ejecutar la demo

dotnet run --project BlueDragonFly.FinanzasLib.Demo

Licencia

Este proyecto está licenciado bajo la Licencia MIT.

Copyright (c) 2026 Javier Rivera.

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.1 125 7/11/2026

Initial stable release.