Engee documentation

Compare To Zero

Compares the input signal with zero.

blockType: Compare To Zero

Path in the library:

/Basic/Logic and Bit Operations/Compare To Zero

Description

Block Compare To Zero compares the input signal with zero. The comparison method is set by the parameter Operator.

Ports

Input

# IN_1 — Input signal
scalar

Details

The input signal is in the form of a scalar for comparison with zero.

Data types

Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool

Complex numbers support

Yes

Output

# OUT_1 — Output signal
scalar

Details

Output — 0 if the comparison is false, and 1 if it is true.

Data types

Bool, UInt8

Complex numbers support

Yes

Parameters

Main

# Operator — The logical operator
| == | ~= | < | >= | >

Details
This parameter can have the following values
  • == — the input value is zero.

  • ~= — the input value is not zero.

  • < — the input value is less than zero.

  • — the input value is less than or equal to zero.

  • > — the input value is greater than zero.

  • >= — the input value is greater than or equal to zero.

Values

| == | ~= | < | >= | >

Default value

<=

Program usage name

Operator

Tunable

No

Evaluatable

No

# Output data type — type of output data
Bool | UInt8

Details

Specify the type of output data Bool or UInt8.

Values

Bool | UInt8

Default value

Bool

Program usage name

OutDataTypeStr

Tunable

No

Evaluatable

No

Additional options

C code generation: Yes