Difference between revisions of "Slash"
m (Text replace - "delphi>" to "syntaxhighlight>")
(I do not miss anything here so removed the stub category)
|Line 13:||Line 13:|
Revision as of 10:50, 24 March 2014
The / or slash is used in a Pascal program to perform division. The results are a real value. If you want integer type value then use the div operator, round or trunc function . If you want know remainder use mod.
A := 3 / 4;
returns 0.75 if a is real (if a is integer-type then get error:Incompatible types).