Bug: Rounded decimals with unit conversion

mbowdich
Posts: 209
Joined: Tue Oct 05, 2010 10:54 am

Bug: Rounded decimals with unit conversion

Post by mbowdich » Wed Feb 16, 2011 11:46 am

When using unit conversion, decimal places are being rounded. For example, I am recieving 58 degC from the J1939 bus (intake air temperature). When displaying the parameter in a text gauge with units of fahrenheit with decimal place set to 1, 136.0 degF is displayed. The actual displayed value should be 136.4 degF. With 57 degC, the display is rounded up to 135.0 degF instead of 134.6 degF.

The errors get really large when converting from kPa to Bar.
Last edited by mbowdich on Thu Feb 17, 2011 1:02 pm, edited 1 time in total.
bseidl

Re: Bug: Rounded decimals with unit conversion

Post by bseidl » Thu Feb 17, 2011 10:03 am

Hello,
I tested this out using your example of the intake temperature. If I change the "Small Increment" property of the text gauge to 0.1, then the gauge displays the correct converted value (i.e. 134.6). You may want to make sure the "Small Increment" property is set correctly to match how many decimal places you want to use.

Brad Seidl
F.W. Murphy