[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
boolean
In electronics a boolean can be represented by two different voltages, e.g. -5V could mean false and +5V true.
In older programming languages like C, booleans are simply represented by integers, where 0 means false, and any other number means true. Modern programming languages like C++ and Java have special types to represent booleans.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
boolean
Boolean
A boolean is a variable that can have only two values: ''true'' and ''false''. It can also be represented as 0 or 1, 0 usually meaning false and 1 meaning true.In electronics a boolean can be represented by two different voltages, e.g. -5V could mean false and +5V true.
In older programming languages like C, booleans are simply represented by integers, where 0 means false, and any other number means true. Modern programming languages like C++ and Java have special types to represent booleans.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
