JQuery Globalizations incorrectly returns decimals

0

good morning people.

I am here to annoy you, because I have been fighting this issue for several days and I can not solve it.

I tell you ... I am trying to convert certain numbers entered in decimals with the format corresponding to my country. But Globalize returns the values incorrectly.

JQuery language.

For example

var a = Globalize("es-AR").parseNumber('3,15'); // 3.15

In this case, a should contain the number 3,15

var a = Globalize("es-AR").parseNumber('3.15'); // 315

In this case, it also misses the conversion, since it should return 3.15 and not 315

I have the cldr

numberingSystems.json
numbers.json

Does anyone know what this might be due ?, The truth is driving me crazy!

Thank you very much for the help in advance!

    
asked by Juan Salvador Portugal 05.03.2018 в 13:46
source

1 answer

0

on the official page of jquery you have an example of what you want to do I leave the link: link the only thing you will need jquery, jquery ui and globalize

    
answered by 07.03.2018 в 22:00