I have a variable listed as %SUBTOTAL% in an HTML document, if I just put %SUBTOTAL% it is replaced by a number, in this case "551,313.46". If I write this:
<script type="text/javascript">document.write(%SUBTOTAL%);</script>
it is replaced by "551313.46"
I want to do basic math operations with that number but whrn I try to multiply it by 2
<script type="text/javascript">document.write(%SUBTOTAL%*2);</script>
I just get this "551626.92" so, only tne numbers after the coma are multilplied by 2, how can I get the whole number to operate?