I have a dialog node in my Watson Assistant that takes a number provided by the user and then provides a response with that number used in a division like so:
<? (1000 * ($Number / 6.00)) ?> Grams
The problem is that this returns a message like this: (Considering the number was 2)
333.3333333333333 Grams
Removing the .00 from the 6.00 results in:
0 Grams
Is there any way I can round the result of the division? Ideally I would like to round it to the nearest multiple of ten but rounding it to 2 decimal places would also be acceptable. I want to get a final message like so:
333.33 Grams