Difference between revisions of "Slash"
(new) |
|||
Line 10: | Line 10: | ||
{{Stub}} | {{Stub}} | ||
+ | |||
+ | [[Category:Symbols]] |
Revision as of 11:57, 11 May 2007
The / or slash is used in a Pascal program to perform division. The results are a real value unless the values on both sides of the slash are integer, in which case the value is integer and the result is the same as the div operator.
A := 3 / 4;
returns 0.75 if a is real, and zero if a is integer.
The value on the right side of the slash must not be zero, or a division by zero error occurs. This can be caught through use of a try .. finally or try .. except block.
single characters |
|
character pairs |
|