My code:
test = '1.111,111'
test2 = parseFloat(test)
test3 = test.replace(/,/g, '.')
console.log(test2)//1.111
console.log(parseFloat(test3))//1.111
I need the whole number returned as a string in the "test" variable to be returned.
I want the return of: 1.111,111 in number format.
How can I do this?