Slash

From Free Pascal wiki
Revision as of 21:22, 10 May 2006 by Rfc1394 (talk | contribs)
Jump to navigationJump to search

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.


navigation bar: topic: Pascal symbols
single characters

+ (plus)  •  - (minus)  •  * (asterisk)  •  / (slash)
= (equal)  •  > (greater than)  •  < (less than)
. (period)  •  : (colon)  •  ; (semi colon)
^ (hat)  •  @ (at)
$ (dollar sign)  •  & (ampersand)  •  # (hash)
' (single quote)

character pairs

<> (not equal)  •  <= (less than or equal)  •  := (becomes)  •  >= (greater than or equal)

 •  >< (symmetric difference)  •  // (double slash)


An editor has declared this article to be a stub, meaning that it needs more information. Can you help out and add some? If you have some useful information, you can help the Free Pascal Wiki by clicking on the edit box on the left and expanding this page.