Abstract
Many things can be expressed in terms of two mutually exclusive states. For example, either I am at home or I am not; either I have enough money to buy the latest Porsche or I have not. It is therefore important to be able to define variables which can take precisely two values. Such variables are called logical variables or boolean variables (after the mathematician George Boole). In MODULA-2 there is a predefined type BOOLEAN. Any variable of type BOOLEAN can take one of the two values FALSE or TRUE, where FALSE and TRUE are standard identifiers.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 1985 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Thalmann, D. (1985). The Boolean and CHAR Types. In: Modula-2. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-69668-8_4
Download citation
DOI: https://doi.org/10.1007/978-3-642-69668-8_4
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-13297-4
Online ISBN: 978-3-642-69668-8
eBook Packages: Springer Book Archive