interpretAsDword, interpretAsFloat, interpretAsQword, interpretAsDouble
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DEFunction Syntax
dword interpretAsDword(float x);float interpretAsFloat(dword x);qword interpretAsQword(double x);double interpretAsDouble(qword x);
Description
These functions interpret the actual bytes of a value as if the value was of another data type. InterpretAsFloat for example takes the four bytes or a dword, interprets them as if they were four bytes of an IEEE single precision floating point number, and returns that number. InterpretAsDouble interprets eight bytes as if they were an IEEE double precision floating point number. InterpretAsDword and InterpretAsQword are the inverse functions.Parameters
- x: The number which shall be interpreted.