Skip to content

.Net Standard 2.1 package for converting number or currency values to Turkish words.

License

Notifications You must be signed in to change notification settings

sefacan/NumberToWords

Repository files navigation

NumberToWords - Convert number or currency values to Turkish words

.Net Standard 2.1 package for converting number or currency values to Turkish words.

Build Status

Build server Platform Status
Azure CI Pipelines All
Github Actions All
Travis CI Linux

Installation

Install the NumberToWords NuGet Package.

Package Manager Console

Install-Package Number2Words

.NET Core CLI

dotnet add package Number2Words

Usage

ITransformerFactory transformerFactory = new TransformerFactory() // create transformer factory
var transformer = transformerFactory.Create("tr");

// currency converting
var currencyToWords = transformer.ToCurrencyWords(123456789.26m, "TRY");
// YÜZ YİRMİ ÜÇ MİLYON DÖRT YÜZ ELLİ ALTI BİN YEDİ YÜZ SEKSEN DOKUZ LİRA YİRMİ ALTI KURUŞ

// number converting
var numberToWords = transformer.ToWords(123456789);
// YÜZ YİRMİ ÜÇ MİLYON DÖRT YÜZ ELLİ ALTI BİN YEDİ YÜZ SEKSEN DOKUZ