|
Name
FRA |
Syntax FRA(expression) |

Range
expression, Typ real |

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

Example
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 |

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

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