Pascal (programming language): Difference between revisions

Content deleted Content added
Data types: I think this is correct. Correct me if I'm wrong.
Rounding
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> (roundsusing to[[Rounding|rounding the nearest integer, orhalf 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