| [Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | 
Overflow safe divide
Source position: objects.pp line 678
| function LongDiv( | 
| X: LongInt; | 
| Y: Integer | 
| ):Integer; | 
LongDiv divides X by Y. The result is of type Integer instead of type Longint, as you would get normally.
If Y is zero, a run-time error will be generated.
| 
 | Overflow safe multiply. |