After verifying that the variable's typeof
is a number
, I am still encountering an invalid argument exception when using the CurrencyPipe.
Could it be possible that CurrencyPipe imposes additional constraints on input beyond just data type number
?
currencyPipe.transform(myNum, 'USD', true, '1.2-2');