I've got a variable with string, lets say it is something like: const test = '100,71648192'; What i want to do is first change it to number and then use Math.trunc(test*100)/100
I tried parseFloat(test)Math.trunc(test * 100) / 100) but of course it is no working and i know why, but i dont know how i can do it in 1 line
Ty for your answers