Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Sign

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Returns the sign of number.

Text-based programming languages typically call this function signum or sgn. The connector pane displays the default data types for this polymorphic function.

Example

number can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.
–1, 0, 1 returns 1 if the input value is greater than 0, returns 0 if the input value is equal to 0, and returns –1 if the input value is less than 0.

Example

Refer to the Add - Various Uses VI in the labview\examples\general\functions\Numeric directory for an example of using the Sign function.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit