Can someone help me work out the logic for the following calculation:
Qu.1 How many employees do you have? Employees as a numerical value
800 x (Employees x 0.667) = total energy
total energy x 0.184 = Emissions kg CO2
Then display ‘Emissions kg CO2’ on end screen
Thanks in advance :)
Best answer by john.desborough
@LewisK - the 2 decimal place is a restriction at the moment .. a little frustrating, i know .. but a while back you could not even set up the number variables to have decimals at all..
i will share the screens below but a couple of notes:
i created the variables slightly different - i created a constant of 800 * .667 = 533.6 (math order of operations says it doesn’t matter when you do the math - this way you don’t lose your 007 - oh that’s funny .. lol )
i also did a ‘wonky trick’ in the usage of .184 which you will see.. to get around the 004 being dropped.
@LewisK - the 2 decimal place is a restriction at the moment .. a little frustrating, i know .. but a while back you could not even set up the number variables to have decimals at all..
i will share the screens below but a couple of notes:
i created the variables slightly different - i created a constant of 800 * .667 = 533.6 (math order of operations says it doesn’t matter when you do the math - this way you don’t lose your 007 - oh that’s funny .. lol )
i also did a ‘wonky trick’ in the usage of .184 which you will see.. to get around the 004 being dropped.
Happy you enjoyed the workaround provided by Des, @LewisK! Why don't you share your form with us so we can give some feedback on it? We'd love to do it! 😉