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