Can anyone help. I started making a project for a brake test equipment for cars. I measure the power consumption of the two engines that converts AC to DC. The hardware works, 0 - 2V analog in. and FC works with 2 bar graph in the display, that shows what they should. But I would have liked to read out the difference in percentages and I can not get it to work.
I want difference (example) calculated as a percentage: Ana0 = 150 and Ana1 = 140 and nomally you calculate this by:
150-140
_______ = 0.0714 * 100 = 14.7% Difference
140
If I make the calculations in FC calculationbox Percent = 150-140/140 * 100 I get some wrong calculations
Percent, An0 and An1 is defined as Int
Is there anyone who can help with the calculation, without any decimals after the comma.
Thank´s in advance
Best regard
Jorgen