SGN/de
(Difference between revisions)
m (1 revision) |
(→(**COPIED FROM ENGLISH PAGE**) =) |
||
Line 1: | Line 1: | ||
− | + | = <span class="f_Header">Funktion</span> = | |
− | + | Gibt das Vorzeichen einer Gleitkommazahl zurück. | |
<span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> |
Revision as of 22:59, 2 March 2013
Contents |
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 |
---|