I have a simple set of questions and code that works out take-off weight in a checklist for a Microlight (ULM). When doing the weight of MOGAS fuel I am using 0.75 and of course I get a load of decimals which I don’t need. I’d like to round up to just 2 decimal places or even to the next highest round number.

The code below is simple and I have two problems to solve

- a way to calculate the fuel value (litres) into a weight (say 30 * 0.75)
- and a way to only get 2 decimal places from the result above

The code I am using is:

${Number(P1) + Number(P2) + Number(Fuel) +Number(Bag) + 268} Kg

What code can I add to stop getting for example something like 425.666666785 kgs returned? Any ideas anyone, thanks in advance.