Login
Plus/4 EncyclopediaFirstBackNextLast

SGN Function
Category
Reference/Commodore Basic V3.5

Topic
SGN(X)

This function returns a numeric value.

This function returns the SiGN (positive, negative, zero) of the value in X.

The results are
1: Positive
0: Zero
-1: Negative

Abbreviation
S SHIFT+G



Copyright © Plus/4 World Team, 2001-2024