Difference between revisions of "Sign"

From MultiCharts
Jump to navigation Jump to search
(Created page with "Returns a numerical value, indicating the sign of the value of the specified numerical expression. A value of 1 is returned for a positive value, -1 is returned for a negativ...")
(No difference)

Revision as of 14:23, 26 January 2012

Returns a numerical value, indicating the sign of the value of the specified numerical expression. A value of 1 is returned for a positive value, -1 is returned for a negative value, and 0 is returned for the value of 0.

Usage

Sign(Value)

Where: Value - a numerical expression

Example

Sign(5) will return a value of 1 

Sign(-2.85) will return a value of -1 

Sign(0) will return a value of 0