xela144 / CANaconda

CANaconda project: CAN message viewer
GNU General Public License v3.0
10 stars 0 forks source link

Don't display integer fields as floats #18

Closed Susurrus closed 10 years ago

Susurrus commented 10 years ago

Fields are always interpreted as fixed-point. So if there's no decimal component (i.e. scaling factor is 1), always display them as integers with no decimal component.

Do note that this only applies when the base unit is being used for this field. For example, if we're receiving data in Celsius, and we're viewing it in Celsius, it shouldn't show a decimal point. But if we convert this value to Fahrenheit, it should since this conversion involves non-integer math.

xela144 commented 10 years ago

58d3e71