Documentation Home Page HYPERSIM Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Mathematical | SIGN

SIGN – [SIGN]
Outputs the sign of the input.


CATEGORY
Mathematical

DESCRIPTION
Outputs the sign of the input. Outputs 1 when input is greater than 0, -1 when input is less than 0, and 0 when input is 0.


RESULT VARIABLES AND PARAMETERS

ResultSign of input [-1, 0, 1].
SignalInput


SYNTAX

res=sign(input)


CHARACTERISTICS
Data type support
Double Floating point

EXAMPLE

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323