Operations with decimals, Angular 6, esLocale

0

I'm trying to do mathematical calculations with decimals,

I have several inputs that perform calculations among themselves, these inputs are article prices, to visualize them well, I changed the LOCALE_ID from angular to 'is', at the moment everything is fine, the numbers show them with the correct format applying the pipe | number.

The problem is ... when I do some calculation with a number that contains a decimal, the result is NaN, the reason is because it does not recognize the number for example 150.30 € (does not recognize the ",")

If I remove the LOCALE_ID, the format of the number becomes 150.30 € and the calculation does it perfectly ...

How can I correct that?

    
asked by Sergio Cano 01.09.2018 в 02:02
source

0 answers