How do i divide variables in RR? / sign is taken, so what symbol do you use? I am making a fuel log (just a table)
¦ date ¦ litres ¦ p per litre ¦ milage ¦ cost ¦ mpg ¦
variables are called
datef namef pencef lastf nextf interf
Date, litres, p per litre, milage are filled in with the numosk, cost is worked out by multiplying litres by p per litre - this works fine
Code:
B,549,115,105,28,"BYVAR;VMPAGE;EVAL;VMNEXTF01;$VMNAMEF01$*$VMPENCEF01$<<EVAL;VMNEXTF01B;$VMNAMEF01B$*$VMPENCEF01B$",
I want to get mpg by dividing milage by litres and then dividing this by 4.5. If it was a / sign for divide it would be this (unless i made a mistake).
Code:
B,655,115,74,28,"BYVAR;VMPAGE;EVAL;VMINTERF01;$VMLASTF01$/$VMNAMEF01$/$4.5$<<EVAL;VMINTERF01B;$VMLASTF01B$/$VMPENCEF01B$/$4.5$",
Please help if you can.
Thank you
Bookmarks