Nut 3.0.0

Number To Text Converter
Money To Text Converter

Supported Languages: English, French, Russian, Spanish, Turkish, Ukrainian, Ethiopian

Supported Currencies: EUR, USD, RUB, TRY, UAH, ETB

Number Limit: 1 trillion

Install-Package Nut -Version 3.0.0
dotnet add package Nut --version 3.0.0
<PackageReference Include="Nut" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nut --version 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

NUT - Number To Text


Number To Text Converter

Money To Text Converter

Supported Languages: English, French, Russian, Spanish, Turkish, Ukrainian, Bulgarian, Ethiopian.

Supported Currencies: EUR, USD, RUB, TRY, UAH, BGN, ETB.

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,
        MainUnitFirstCharUpper = true,
        SubUnitFirstCharUpper = true,
        CurrencyFirstCharUpper = true,
        SubUnitZeroNotDisplayed = 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

NUT - Number To Text


Number To Text Converter

Money To Text Converter

Supported Languages: English, French, Russian, Spanish, Turkish, Ukrainian, Bulgarian, Ethiopian.

Supported Currencies: EUR, USD, RUB, TRY, UAH, BGN, ETB.

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,
        MainUnitFirstCharUpper = true,
        SubUnitFirstCharUpper = true,
        CurrencyFirstCharUpper = true,
        SubUnitZeroNotDisplayed = 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

Release Notes

- added Bulgarian language and currency
- added Ethiopian language and currrency
- net standart 2.0

  • .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 History

Version Downloads Last updated
3.0.0 365 7/3/2020
2.4.2 29,352 5/27/2016
2.4.1 664 1/15/2016
2.4.0 419 1/15/2016
2.3.3 557 4/14/2015
2.3.2 445 4/7/2015
2.3.1 442 4/7/2015
2.3.0 458 4/6/2015
2.2.0 610 12/18/2014
2.1.4 577 12/2/2014
2.1.3 539 4/7/2014
2.1.2 479 4/4/2014
2.1.1 484 4/4/2014
2.1.0 477 4/4/2014
2.0.3 470 4/3/2014
2.0.2 546 4/3/2014
2.0.1 501 4/2/2014
2.0.0 601 4/1/2014
1.0.0 568 3/31/2014