Fixed-Point Blockset | ![]() ![]() |
Perform the specified relational operation on the inputs
Description
The FixPt Relational Operator block is a masked S-function that performs a comparison of its two inputs. The first (top) input is converted the data type of the second (bottom) input prior to comparison.
The operator connecting the two inputs is selected with the Operator parameter list. The supported relational operators are given below.
The output is specified with the Logical output data type parameter. The output equals 1 for TRUE and 0 for FALSE.
Note The output data type selected should represent zero exactly. Data types that satisfy this condition include signed and unsigned integers and any floating-point data type. |
Parameters and Dialog Box
Conversions
The input with the smallest positive range is converted to the data type of the other input offline using round-to-nearest and saturation. This conversion is performed prior to comparison. Refer to Parameter Conversions for more information about parameter conversions.
Characteristics
![]() | FixPt Product | FixPt Relay | ![]() |