Table of Contents

ugBASIC User Manual

SGN ✓

SYNTAX

   SGN([expression])

PURPOSE

The SGN function returns a value representing the sign of a number. The three possible results are these:

EXAMPLE

  x = SNG(-42)

See also the following example files:

ABBREVIATION

 Sg

AVAILABLE ON

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY