boolean

Học thuật
Thân thiện
boolean

A programmer uses a boolean variable to control a light switch.

Definition
  1. Adjective:
    • Relating to a system of logic: Pertaining to or using the logical system developed by George Boole, which uses the operators AND, OR, NOT, IF...THEN, etc., to combine and manipulate statements that are either true or false.
    • Having two possible states: Describing a variable, expression, or data type that can have only one of two possible values, typically represented as true or false, or 1 and 0.
Usage Examples
  • Adjective:
    • The search engine uses boolean operators to refine results. (The search engine uses logical operators like AND and OR to refine results.)
    • In programming, a boolean variable is essential for controlling the flow of a program. (In programming, a variable that can be only true or false is essential for controlling the flow of a program.)
    • The function returns a boolean value indicating success or failure. (The function returns a true/false value indicating success or failure.)
Advanced Usage
  • "boolean algebra": The branch of algebra in which the values of the variables are the truth values and , and the operations include logical conjunction (AND), disjunction (OR), and negation (NOT).
    • Understanding boolean algebra is fundamental for digital circuit design.
  • "boolean logic": The system of logical operations (AND, OR, NOT, etc.) on binary variables.
    • Database queries often rely on boolean logic to filter records.
Variants and Related Words
  • Boolean (noun, capitalized): Can refer to a Boolean data type or value itself.
    • The result is stored as a Boolean.
  • Boole (proper noun): George Boole, the mathematician who invented Boolean algebra.
Synonyms
  • Logical: Involving or according to the rules of formal logic.
  • Binary: (In a computing context) involving or indicating a choice between two mutually exclusive possibilities.
Related Phrases
  • Boolean operator/connective: A word or symbol (e.g., AND, OR, NOT) used to connect search terms or logical propositions.
    • Use the boolean operator AND to find pages containing both terms.
  • Boolean expression: An expression in a programming language that produces a Boolean value when evaluated.
    • The boolean expression (x > 5) AND (x < 10) evaluates to true only for numbers between 5 and 10.
  • Boolean search: A type of search that allows users to combine keywords with operators to produce more relevant results.
    • Perform a boolean search to narrow down the list of academic papers.
boolean

A programmer uses a boolean variable to control a light switch.

Adjective
  1. of or relating to a combinatorial system devised by George Boole that combines propositions with the logical operators AND and OR and IF THEN and EXCEPT and NOT