COVESA / vehicle_signal_specification

Vehicle Signal Specification - standardized way to describe automotive data
Mozilla Public License 2.0
307 stars 157 forks source link

Ranges for Float and Double #705

Closed erikbosch closed 4 months ago

erikbosch commented 5 months ago

What is the source for float/double range at https://covesa.github.io/vehicle_signal_specification/rule_set/data_entry/data_types/

Ranges are possible different compared to AUTOSAR


float | floating point number | -3.4e -38 | 3.4e 38
double | double precision floating point number | -1.7e -300 | 1.7e 300

Not fully compatible with for example:

IEEE 754 32-bit base-2 floating-point https://en.wikipedia.org/wiki/Double-precision_floating-point_format

Shall we possibly base limits on IEEE754 binary 32 and binary64

erikbosch commented 5 months ago

MoM: