Javascript: preserving 2 decimal places


var price='4.95';

var quantity=parseInt('3');

var res= ((price*quantity)).toFixed(2);

gs.print(res);

Comments

Popular posts from this blog

Running transform maps asynchronously

Post a command to the ECC queue for the mid server to initiate a powershell file copy

GlideRecord setValue