TimC 1 Posted June 13, 2013 Report Share Posted June 13, 2013 Hi folks, Thanks for all your help so far. I'm creating a bot and I want the task to show percentage complete. I have done the sums, but the result is ugly. eg. 1.43895903845374534% How do I make it to 1 decimal point? Thanks Quote Link to post Share on other sites
blumi40 222 Posted June 13, 2013 Report Share Posted June 13, 2013 set(#val, $eval("Math.round(1.43895903845374534)"), "Global") Quote Link to post Share on other sites
elizbeth 2 Posted June 14, 2013 Report Share Posted June 14, 2013 set(#val, $eval("(1.43895903845374534).toFixed(1)"), "Global")alert(#val) Use the above code and the decimal digits are fixed to 1. 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.