Pascal (programming language): Difference between revisions

Content deleted Content added
Citation bot (talk | contribs)
Alter: title, template type. Added chapter. Removed parameters. | Use this bot. Report bugs. | Suggested by Neko-chan | #UCB_webform 38/500
Banker's rounding is non-standard Pascal
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> (which rounds to integer usingaway [[banker'sfrom rounding]]zero) 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