I have an element : <totalPrice>20.9</totalPrice>
I'm storing this into a variable:
var totalPrice = node.ValueOfSelect("Info/priceInfo/totalPrice");
in another variable, i'm removing the decimal:
var Info = totalPrice.replace( '.', '');
However, this returns 209. I want to have it append a 0 at the end so that it returns 2090
It should works as below:
i.e 20.9 --> 2090
11.15 --> 1115
1.13 --> 113