Navigation:  ThinBASIC Modules > Core (thinBasic Core Engine) > Numeric functions >

SGN

Previous pageReturn to chapter overviewNext page

 

Description

 

Return the sign of a numeric expression.

 

Syntax

 

n = SGN(numeric_expression)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

numeric_expression

Number

No

Any numeric expression

 

Remarks

 

Restrictions

 

See also

 

Numeric Handling,

 

Examples