Argox PA-20 Basic Programming Manual Uživatelský manuál Strana 18

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 143
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 17
PT-Basic Programming Manual Ver. 1.00 17/143
SGN
Purpose
To return an indication of the mathematical sign (+ or -) of a
given numeric expression.
Syntax
A% = SGN(N%) or A% = SGN(N!)
Example
A% = SGN(9.86)
PRINT A%
B% = SGN(-5.68)
PRINT B%
B% = SGN(0)
PRINT B%
Description
N% or N! is a numeric expression,it can be an integer or a
real number.
A% is an integer variable to be assigned to the result.
A%
Meaning
1
N% >0
0
N% =0
-1
N% <0
Zobrazit stránku 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 142 143

Komentáře k této Příručce

Žádné komentáře