2022 Developer Survey is open! Take survey.

Fuzzy logic is a variant of boolean logic, where the values are real numbers between 0 and 1 (inclusive), rather than only the integer numbers 0 and 1. Use this tag for questions that involve this real-valued logic.

Fuzzy logic is an alternative to boolean logic.

In boolean logic, every statement is either true or false. Usually "1" is used to represent "true" and "0" is used to represent "false".

Fuzzy logic is an extension of this concept, where statements do not have such absolute values. Instead, the truth value is a real number in the range [0..1].

As such, fuzzy logic is a real-number version of multi-valued logic.