DecimalToIntegerConverter 1.0.2
dotnet add package DecimalToIntegerConverter --version 1.0.2
NuGet\Install-Package DecimalToIntegerConverter -Version 1.0.2
<PackageReference Include="DecimalToIntegerConverter" Version="1.0.2" />
<PackageVersion Include="DecimalToIntegerConverter" Version="1.0.2" />
<PackageReference Include="DecimalToIntegerConverter" />
paket add DecimalToIntegerConverter --version 1.0.2
#r "nuget: DecimalToIntegerConverter, 1.0.2"
#:package DecimalToIntegerConverter@1.0.2
#addin nuget:?package=DecimalToIntegerConverter&version=1.0.2
#tool nuget:?package=DecimalToIntegerConverter&version=1.0.2
DecimalToIntegerConverter 🚀
A simple .NET library for converting decimal values to integers with precision handling.
📌 Installation
.NET CLI
dotnet add package DecimalToIntegerConverter --version 1.0.2
Package Manager
Install-Package DecimalToIntegerConverter -Version 1.0.2
PackageReference
Add the following line to your .csproj
file:
<PackageReference Include="DecimalToIntegerConverter" Version="1.0.1" />
⚙ Usage
Import the namespace and use the extension method to convert a decimal value to cents (integer representation).
using DecimalToIntegerConverter;
decimal value = 12.34m;
int cents = value.ToCents(); // Output: 1234
Console.WriteLine($"Converted: {cents}");
📦 Features
✅ Converts a decimal value to an integer representation.
✅ Automatically handles precision (2 decimal places).
✅ Simple and lightweight, ideal for financial calculations.
🛠 Compatibility
✔ .NET 9.0+
Works with .NET 9.0 or higher frameworks.
🔗 Repository & Issues
🔗 GitHub Repository
Feel free to open an issue or contribute to the project! 🚀
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. 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. |
-
net9.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.