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" />
                    
Directory.Packages.props
<PackageReference Include="NumberToIndianWords" />
                    
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 NumberToIndianWords --version 1.0.0
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=NumberToIndianWords&version=1.0.0
                    
Install as a Cake Tool

๐Ÿ‡ฎ๐Ÿ‡ณ 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

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 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