Twic 1.0.0
dotnet add package Twic --version 1.0.0
NuGet\Install-Package Twic -Version 1.0.0
<PackageReference Include="Twic" Version="1.0.0" />
paket add Twic --version 1.0.0
#r "nuget: Twic, 1.0.0"
// Install Twic as a Cake Addin #addin nuget:?package=Twic&version=1.0.0 // Install Twic as a Cake Tool #tool nuget:?package=Twic&version=1.0.0
Converts a number to its representation in words, currently supports english and spanish only.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has 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 |
---|
//supports int, double, decimal, and float
decimal aNumber = 2.99;
//next line will detect language according to CultureInfo.CurrentCulture
string auto = aNumber.Twic(); //returns 'two' or 'dos' depending on CultureInfo
//force English
string forceEnglish = aNumber.Twic(Language.English); // 'two 99/100'
//force spanish
string forceSpanish = aNumber.Twic(Language.Spanish); // 'dos 99/100'
//Use int to remove cents
string integerString = 2.Twic(Language.English) //returns 'two'