Bee.NumberToWords 1.0.3

dotnet add package Bee.NumberToWords --version 1.0.3                
NuGet\Install-Package Bee.NumberToWords -Version 1.0.3                
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="Bee.NumberToWords" Version="1.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Bee.NumberToWords --version 1.0.3                
#r "nuget: Bee.NumberToWords, 1.0.3"                
#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.
// Install Bee.NumberToWords as a Cake Addin
#addin nuget:?package=Bee.NumberToWords&version=1.0.3

// Install Bee.NumberToWords as a Cake Tool
#tool nuget:?package=Bee.NumberToWords&version=1.0.3                

Number To Text

Bee.NumbertoWords is a light weight C# library for number to text conversion with currency support. Importantly it supports arabic for Saudi Riyal out of the box.

Supported Languages
  • English
  • Arabic
  • Hindi
  • Nepali
Supported Currencies
  • USD
  • SAR

Usage

Extension Methods for currency conversion
const decimal input = 5678.71M;
string result = input.ToArabicWords(Currency.USD);
//output "خَمْسَة ألف سِتَّة مائة ثَمَانِيَة و سَبْعُونَ دولار أمريكي و وَاحِد و سَبْعُونَ سنتا فقط"
string resultEng = input.ToEnglishWords(Currency.USD);
//output "Five thousand six hundred seventy eight USD and seventy one cents only"
Custom Convertor for other currencies
 var AmtToWords = new CurrencyWordsConverter(new CurrencyWordsConversionOptions
            {
                Culture = Culture.International,
                OutputFormat = OutputFormat.English,
                CurrencyUnit = "rupees",
                SubCurrencyUnit = "paisa",
                CurrencyUnitSeparator = "and"
            });

string actualResult = AmtToWords.ToWords(32152.12M);
//output "Thirty two thousand one hundred fifty two rupees and twelve paisa only"
Number To Text Extension Method
const decimal input = 5678.71M;
string result = input.ToWords();
//output "Five thousand six hundred seventy eight point seven one"

License

MIT

Free Software, Hell Yeah!

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net5.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.3 2,963 2/1/2022
1.0.2 477 1/18/2022
1.0.1 463 1/18/2022

Fixed arabic numbering system to follow internationl numbering system