| Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link Back |
Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
Frac |
unit |
| System | |
| category | |
| arithmetic routines |
| declaration |
| description |
Frac(X) = X - Int(X).
| example |
var x1,x2 : extended; x1 := -2,123; x2 := 4.987; x1 := Frac(x1); x2 := Frac(x2); //x1 = -0.123 //x2 = 0.987 |
| in real code |
| see also |
| Free Delphi code snippet inside every Delphi Newsletter! |
|
|
| Got some code to share? Got a question? Need some help? |
|
|

