currencyFormatter.js
currencyFormatter.js copied to clipboard
NaN parsing CVE currency value
I have the formatted price in the currency CVE formatted price is 3,000,00 This price is formatted from the android device based on the selected locale.
I'm using the below code to parse the currency
var currency = require("currencyformatter.js");
console.log(currency.parse('3,000,00 ', { currency: 'CVE' } ));
The above code gives NaN.