Skip to content
hugh greene edited this page Jun 20, 2022 · 1 revision

Notation

Description

Returns the sign of the number. sign(-4) returns -1, sign(0) returns 0.

Parameters

  • x: is a numeric argument whose sign (negative, positive, or 0) you are interested in obtaining.

Return Values

Returns the sign of x, one of -1 (for negative), 0, or 1 (for positive).

Example Call

// demonstrates

NOTOC

Category:Function:Real

Clone this wiki locally