I need to use the Nuget package Humanizer to convert currency to English words equivalent as follows
using Humanizer;
AmountInWords = pmt.Amount.ToWords()
pmt.Amount is of type decimal and it represents the amount in figures
I get the following error
Error CS1929 'decimal' does not contain a definition for 'ToWords' and the best extension method overload 'NumberToWordsExtension.ToWords(int, CultureInfo)' requires a receiver of type 'int'
I have checked the documentation at the following url and I am not yet able to find a way to resolve it
https://github.com/Humanizr/Humanizer#number-to-words
I will appreciate any guide to resolve this.
Thank you