Nut 3.3.0

.NET Standard 2.0
dotnet add package Nut --version 3.3.0
NuGet\Install-Package Nut -Version 3.3.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="Nut" Version="3.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nut --version 3.3.0
#r "nuget: Nut, 3.3.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Nut as a Cake Addin
#addin nuget:?package=Nut&version=3.3.0

// Install Nut as a Cake Tool
#tool nuget:?package=Nut&version=3.3.0

NUT - Number To Text


Number To Text Converter

Money To Text Converter

Supported Languages: English, French, Russian, Spanish, Turkish, Ukrainian, Bulgarian, Amharic, Polish, Belarussian, Portuguese.

Supported Currencies: EUR, USD, RUB, TRY, UAH, BGN, ETB, PLN, BYN, ARS, BRL.

Number Limit: 1 trillion


USAGE - Number To Text


    var number = 123456
    var text = number.ToText("en");

    var number = 123456;
    var text = number.ToText(Language.English);

USAGE - Money To Text


    var number = 123456.78
    var moneyText = number.ToText("usd", "en");

    var number = 123456.78;
    var moneyText = number.ToText(Nut.Currency.USD, Nut.Language.English);

    var number = 123456.78;
    var options = new Nut.Options {
        MainUnitNotConvertedToText = true,
        SubUnitNotConvertedToText = true,
        SubUnitZeroNotDisplayed = true,
        MainUnitFirstCharUpper = true,
        SubUnitFirstCharUpper = true,
        CurrencyFirstCharUpper = true
    }
    var moneyText = number.ToText(Nut.Currency.USD, Nut.Language.English, options);

NUGET

https://www.nuget.org/packages/Nut/


THANKS

  • Latif Turk - Ukrainian Language and Currency
  • SecreT2k8 - Bulgarian Language and Currency
  • ashGHub - .Net Standart Migration, Ethiopian Language and Currency
  • kashiash - Polish Language and Currency
  • DeNcHiK3713 - Belarussian Language and Currency
  • Marciel032 - Portuguese Language and Currency

LICENCE

NUT-number-to-text is MIT licensed.


Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.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
3.3.0 16,461 5/24/2022
3.2.4 19,248 9/27/2021
3.2.3 359 9/19/2021
3.1.1 8,346 1/27/2021
3.1.0 293 1/27/2021
3.0.0 11,851 7/3/2020
2.4.2 36,250 5/27/2016
2.4.1 1,284 1/15/2016
2.4.0 922 1/15/2016
2.3.3 1,111 4/14/2015
2.3.2 976 4/7/2015
2.3.1 973 4/7/2015
2.3.0 970 4/6/2015
2.2.0 1,500 12/18/2014
2.1.4 1,370 12/2/2014
2.1.3 1,163 4/7/2014
2.1.2 1,098 4/4/2014
2.1.1 1,101 4/4/2014
2.1.0 1,102 4/4/2014
2.0.3 1,099 4/3/2014
2.0.2 1,262 4/3/2014
2.0.1 1,106 4/2/2014
2.0.0 1,304 4/1/2014
1.0.0 1,257 3/31/2014

- added Portuguese language and currency (BRL)