Content deleted Content added
Banker's rounding is non-standard Pascal |
→Data types: I think this is correct. Correct me if I'm wrong. |
||
Line 182:
|}
The range of values allowed for the basic types (except Boolean) is implementation defined. Functions are provided for some data conversions. For conversion of <code>real</code> to <code>integer</code>, the following functions are available: <code>round</code> (rounds to the nearest integer, or away from zero if it ends in ".5") and <code>trunc</code> (rounds towards zero).
The programmer has the freedom to define other commonly used data types (e.g. byte, string, etc.) in terms of the predefined types using Pascal's type declaration facility, for example
|