Class NumberToWords
- Namespace
- NuvTools.Common.Numbers.Portuguese
- Assembly
- NuvTools.Common.dll
Extensions's class to convert numbers to words.
public static class NumberToWords
- Inheritance
-
NumberToWords
- Inherited Members
Methods
ToWords(decimal)
Converts a decimal value to its written form in Portuguese (Brazil), including currency representation.
public static string ToWords(decimal value)
Parameters
valuedecimalThe decimal value to convert. Must be between 0.01 and 999,999,999,999,999.99.
Returns
- string
The value written out in Portuguese with currency (reais/centavos).
Exceptions
- Exception
Thrown when the value is outside the allowed range.