boolean

boolean — 形容詞

1. describing a kind of logic, used heavily in computers and search engines, where

1.形容詞C1
釋義

布林的

用真/假兩種值的邏輯系統

describing a kind of logic, used heavily in computers and search engines, where every value is either true or false (often written as 1 or 0) and where pieces of information are joined using AND, OR, or NOT.

例句

In Python, the variable is_open holds a Boolean value, so it is either True or False.

在 Python 裡,變數 is_open 存放的是布林值,只會是 True 或 False。

common compound: Boolean value

Yumi used a Boolean search to find papers that mention 'climate' AND 'rice' but NOT 'wheat'.

Yumi 用布林搜尋去找同時提到「氣候」和「稻米」但不含「小麥」的論文。

common compound: Boolean search

同義詞
  • binary

    broader; describes anything with two states, not necessarily logical (binary code, binary star)

  • logical

    much wider; about reasoning in general, not the specific true/false system

  • two-valued

    technical, mostly in mathematical logic textbooks

反義詞
  • fuzzy

    in logic, the opposite system: values can be anywhere between 0 and 1, not strictly true or false

文法句型

Boolean + noun (logic, value, expression, operator, search, algebra)

用法筆記

Almost always used directly before a noun (Boolean value, expression, operator, search, algebra, logic). Capitalised in formal writing because it comes from a person's name (George Boole), but lower-case 'boolean' is now standard in programming code (e.g. 'boolean isReady;' in Java).

常見錯誤

The answer was very Boolean.
The answer was a simple yes or no.
💡Boolean is not a degree word; it describes a type of value, not how strongly something is true.
a Boolean number between 0 and 9
a Boolean value, either 0 or 1
💡Boolean values have only two possibilities, not a range.