Hasbati.Percentage.Calculator 1.0.1

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

Hasbati Percentage Calculator (.NET) – حاسبة النسبة المئوية

Hasbati Percentage Calculator is a lightweight .NET library designed to simplify common percentage calculations with a clean and developer-friendly API. It provides a foundation for percentage-based operations in financial applications, educational tools, e-commerce platforms, and general-purpose software.

The library is designed to support reusable calculation logic, making it easier for developers to incorporate percentage calculations into their .NET projects.

Key Features

  • Percentage Calculations: Calculate the percentage one value represents of another.
  • Lightweight Design: Keep percentage calculation logic simple and focused.
  • Easy Integration: Designed for use in compatible .NET applications.
  • Versatile Applications: Suitable for financial, educational, business, and e-commerce scenarios.
  • Reusable Logic: Integrate percentage calculations into larger applications and workflows.

Installation and Integration

Add the library to your .NET project using the installation method provided by this repository or its package distribution source.

For the correct package name, supported .NET versions, and installation instructions, refer to the project files and package documentation.

Usage Example

The following example demonstrates how to calculate what percentage one value represents of another using the library's API:

using Hasbati.Percentage;

// Calculate what percentage 25 represents of 100.
double result = Calculator.GetPercentage(25, 100);

Console.WriteLine(result); // 25

Expected result: 25, meaning that 25 is 25% of 100.

Live Interactive Calculator

Prefer a ready-to-use calculator without writing code? Try the official Hasbati Percentage Calculator – حاسبة النسبة المئوية.

The online tool provides a graphical interface for percentage-related calculations, including discounts and other supported percentage operations.

About Hasbati

Hasbati (حسباتي) is an online platform offering practical calculators and digital tools for everyday mathematical, financial, and academic needs. Its tools aim to make calculations easier and more accessible for Arabic-speaking users.

Explore the complete collection of online calculators at Hasbati.com.

License

Refer to the repository's LICENSE file for the applicable licensing terms.

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

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 115 10/13/2026
1.0.0 102 10/13/2026