Skip to content

NaN parsing CVE currency value #38

@deepak786

Description

@deepak786

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions