functionconvertRealToIntegers

Casts a double value to two integers

Information

Syntax

int = convertRealToInteger(real);

Description

The Real input argument real is mapped to two Integer values int[1] and int[2]. The function assumes that two Integer values have exactly the same length as one Real value (e.g. one Integer has a length of 32 bits and one Real value has a length of 64 bits).

Inputs

TypeNameDefaultDescription
RealrealThe Real value

Outputs

TypeNameDefaultDescription
IntegerintThe Integer values

Revisions

DLR logo Developed 2014 at the DLR Institute of System Dynamics and Control