Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.38 KB

README.md

File metadata and controls

41 lines (29 loc) · 1.38 KB

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