NumberToIndianWords 1.0.0
dotnet add package NumberToIndianWords --version 1.0.0
NuGet\Install-Package NumberToIndianWords -Version 1.0.0
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="NumberToIndianWords" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NumberToIndianWords" Version="1.0.0" />
<PackageReference Include="NumberToIndianWords" />
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 NumberToIndianWords --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NumberToIndianWords, 1.0.0"
#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 NumberToIndianWords@1.0.0
#: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=NumberToIndianWords&version=1.0.0
#tool nuget:?package=NumberToIndianWords&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
๐ฎ๐ณ NumberToIndianWords Library
This is a simple and powerful C# class library that converts numeric values into Indian currency words. It supports rupees and paise, and follows the Indian numbering system โ including lakh, crore, arab, and kharab.
๐ What Is This?
This library helps you convert numbers like 123456.78 into readable currency words like: One lakh twenty three thousand four hundred and fifty six rupees and seventy eight paise
Itโs useful for:
- Generating invoices
- Financial reports
- Cheque printing
- Any app that needs Indian currency in words
๐ฆ Installation
Option 1: Install via NuGet (Recommended)
If you've published this library to NuGet:
Using Package Manager Console:
Install-Package NumberToIndianWords
Using .NET CLI:
dotnet add package NumberToIndianWords
Using Visual Studio:
Right-click your project in Solution Explorer.
Select Manage NuGet Packages.
Search for NumberToIndianWords.
Click Install.
๐ ๏ธ How to Use
Step 1: Add the Namespace
cSharp c#
using NumberToIndianWords;
Step 2: Call the Method
cSharp c#
decimal amount = 123456.78m;
string result = amount.ToIndianCurrencyWords();
Console.WriteLine(result);
โ
Output
one lakh twenty three thousand four hundred and fifty six rupees and seventy eight paise
๐ก Supported Types
You can use .ToIndianCurrencyWords() on:
decimal
float
int
long
short
Console.WriteLine(123.45m.ToIndianCurrencyWords()); // decimal
Console.WriteLine(99.99f.ToIndianCurrencyWords()); // float
Console.WriteLine(10000000.ToIndianCurrencyWords()); // int
Console.WriteLine(123456789L.ToIndianCurrencyWords()); // long
Console.WriteLine(((short)250).ToIndianCurrencyWords()); // short
Console.WriteLine((-5000).ToIndianCurrencyWords()); // negative int
๐ Output Samples
Input Output
123.45m one hundred twenty-three rupees and forty-five paise
10000000 one crore rupees
-2500 negative two thousand five hundred rupees
0 zero rupees
๐งช Edge Cases Handled
โ
Zero values โ "zero rupees"
โ
Negative values โ "negative one lakh rupees"
โ
Large numbers โ up to "kharab"
โ
Decimal precision โ "and paise"
โ
Grammar โ "one rupee" vs "two rupees"
๐ License
This project is open-source and free to use under the MIT License.
๐ Contributing
Pull requests are welcome! If youโre a fresher or beginner, feel free to ask questions or suggest improvements.
โจ Author
Crafted with โค๏ธ for developers who want clean, readable financial output in Indian format.
---
You can save this content as a file named `README.md` in your project directory. If youโre planning to publish this as a NuGet package or host it on GitHub, this file will automatically be used to show documentation. Let me know if youโd like help with packaging or publishing next!
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
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.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 358 | 9/18/2025 |
Initial Commit