Table Of Contents

Sign (Multirate Dataflow)

Last Modified: January 23, 2017

Returns the sign of the input value.

spd-note-note
Note  

For nonzero complex numbers, this node returns a complex value with the same phase as the input and with a magnitude of 1.

connector_pane_image
datatype_icon

number

An input to this operation.

This input supports both scalar numbers and arrays of numbers.

Data Type Changes on FPGA

When you add this node to a document targeted to an FPGA, this input has a default data type that uses fewer hardware resources at compile time.

datatype_icon

sign

The sign of the input value. sign returns the following values.

-1 number is less than 0.
0 number is equal to 0.
1 number is greater than 0.
When number is in the form of a + b i, that is, when number is complex, the following equation defines sign:
a + b i | a + b i |

Data Type Changes on FPGA

When you add this node to a document targeted to an FPGA, this output has a default data type that uses fewer hardware resources at compile time.

Where This Node Can Run:

Desktop OS: Windows

FPGA: All devices


Recently Viewed Topics