SGN/de
Aus MCS Wiki AVR
< SGN
Version vom 2. März 2013, 20:59 Uhr von Stefanhamburg (Diskussion | Beiträge)
Inhaltsverzeichnis |
Funktion
Gibt das Vorzeichen einer Gleitkommazahl zurück.
Syntax
var = SGN( x )
Remarks
|
Var |
A single or double variable that is assigned with the SGNS of variable x. |
|
X |
The single or double to get the sign of. |
For values <0, -1 will be returned
For 0, 0 will be returned
For values >0, 1 will be returned
See Also
Example
Dim S As Single , X As Single , Y As Single X = 2.3 : S = Sgn(x) Print S X = -2.3 : S = Sgn(x) Print S End
| Languages | English • Deutsch |
|---|