|
Name
FRA |
Syntax FRA(ausdruck) |

Wertebereiche
ausdruck, Typ real |

Erläuterung
Gibt als Ergebnis die Differenz von ausdruck zu der nächst kleineren ganzen Zahl zurück. Das entspricht dem Ausdruck ausdruck - INT(ausdruck). |

Beispiel
c = FRA(-2.25 ) ! =-2.25 - (-3) = -2.25+3 = 0.75
w = 25.276
w = FRA(w) ! w=0.276
print FRA(15) ! =0 |

Besonderheiten
Die Funktion liefert NICHT den reinen Nachkommaanteil einer Zahl, was dem Ausdruck SGN(ausdruck) * ( ABS(ausdruck) - INT( ABS(ausdruck) ) ) entspräche. Das macht für negative Zahlen einen Unterschied! Siehe Beispiele. |

Referenzen
GDL-Handbuch 4.5 (DE) S.95
GDL-Handbuch 5.0 (DE) S.126
GDL-Handbuch 6.0 (DE) S.175
GDL-Handbuch 6.5 (DE) S.177
GDL-Handbuch 7.0 (DE) S.177
GDL-Handbuch 8.0 (DE) S.119
GDL-Handbuch 8.1 (DE) S.121
GDL-Handbuch 9.0 (DE) S.199
GDL-Handbuch 10.0 (DE) S.201
GDL-Handbuch 11.0 (DE) S.207
GDL Reference Guide 9.0 (INT) S.193
GDL Reference Guide 10.0 (INT) S.199
GDL Reference Guide 11.0 (INT) S.199
|
|
|