![Ecumaster ADU-5 User Manual Download Page 105](http://html1.mh-extra.com/html/ecumaster/adu-5/adu-5_user-manual_2356983105.webp)
Decimal places
Each mathematical channel can store raw values within the range of [-32768, +32767].
You can additionally define decimal places by “moving” the point by 0, 1, 2 or three places. For
example, when decimal places are set to 1, the channel can store real values within the range of [-
3276,8, +3276,7].
Values are calculated in the raw value based on integers and then the point is “moved” by
a defined number of decimal places.
Indirect calculations are performed using a broader range of numbers
(app. ±2*10
9
). For example,
calculations can be performed for the following values 1000*1000 / 123. In
the end, the result is
limited (
clamped
) to a range of [-32768, +32767].
Calculating the average speed of the rear axle
Two channels are given: c_speedRL and c_speedRR
containing speed in km/h.
Let’s assume that we want a result with an accuracy of 0.1
km/h.
The following formula should be input:
n_averageRearSpeed = (c_speedRL*10 + c_speedRR*10) / 2
You should remember to “move” the point by 1 decimal place
to the left. The “I” operation means integer division.
Page 105/137