I've converted numbers using php number format as follows:
number_format($X, 2, ',', '.');
which converts
5000000
into
5.000.000,00
which is exactly what I wanted.
But now my javascript function which is doing some basic math on those numbers are giving wrong result, for example:
5.000.000,00 - 3.500.000,00 = 1.5 instead of 1.500.000,00
So how do you properly calculate those numbers in javascript?
I really appreciate any help i can get :D
Thanks y'all