Difference between revisions of "Slash"
From Free Pascal wiki
Jump to navigationJump to searchLine 1: | Line 1: | ||
+ | The '''''/''''' or '''slash''' is used in a Pascal program to perform division. The results are a floating point 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. | ||
+ | |||
+ | The value on the right side of the slash must not be zero, or a division by zero error occurrs. This can be caught through use of a [[try|TRY]] / [[finally|FINALLY]] block. | ||
{{Symbols}} | {{Symbols}} | ||
+ | |||
+ | {{Stub}} |
Revision as of 21:22, 10 May 2006
The / or slash is used in a Pascal program to perform division. The results are a floating point 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.
The value on the right side of the slash must not be zero, or a division by zero error occurrs. This can be caught through use of a TRY / FINALLY block.
single characters |
|
character pairs |
|