What is a boolean?

Asked

Viewed 4,989 times

5

What exactly is Boolean? Could you give practical examples?

It makes a difference to write true or True?

  • You can explain this in java: https://answall.com/questions/160914/qual-diff%C3%A7a-entre-Boolean-e-boolean

  • Case-Insensitive has no relation to boolean values.

  • I understand now LINQ, it’s because in the topics I see, I always see these terms together, but thank you!

  • @Lucascarvalho show where it comes together. If it’s all right I’ll edit the question to be more obvious.

  • @No, I don’t know exactly where, you know? It’s just, for example, I Googled Boolean, and it comes along a few times, saying it’s case-sensitive. But discard this, I was all wrapped up and I ended up confusing the head of the staff. A thousand excuses.

  • Now I have read it better, it is case-insensitive. I have understood the terms. I have already marked the answer as accepted, I will close here. Sorry bigown and thank you for your patience.

Show 1 more comment

2 answers

12


Boolean, in the context I understand you’re asking, is a data type representing only two states, true or false. This has a direct relationship to the bits of the computer that only have two states 0 or 1.

Many people program but do not know that the computer only understands these two information, and only knows how to do three operations, the addition (or), multiplication (and) and inversion (not) bit (boolean circuits). Everything else that exists in the computer is the composition of it all.

There goes a beginning on boolean algebra created by George Boole. It is similar to what we do in decimal, but only has two digits and simpler operations.

I think I’ve figured out how fundamental he is in programming. And here on the site there’s a lot to talk about, even if nothing gives the definition.

We use it all the time in good condition, but even if we don’t realize it’s being used concretely. It’s just that in boolean expressions they become apparent and that’s what I think you want to know.

Some people think there’s only boolean in if what is not true.

There’s a lot about boolean in computing because he’s the basis of everything we do.

I prefer link articles in English that are usually much better, but it’s easy to navigate to the Portuguese version.

Case insensitive

Assuming you’re talking about True, or true or TRUE, or even .T., or 1, meaning the syntactic representation. It doesn’t matter, it doesn’t change anything for Boolean algebra, it’s just the convention of each language, the concept and the result is the same.

In languages that do not have box sensitivity you can write with upper and lower case that works, but I think it should be consistent and maintain a standard adopted by everyone, so I’m a little against insensitive languages, except for microscripts.

In sensitive languages you need to see which word or symbol is considered with boolean literal. If it is true, write down True is something very different and does not represent a real.

If you happen to be talking about Boolean and boolean, has already been answered in What difference between Boolean and Boolean?.

  • Thanks bigown, for the reply and sorry for the "lambança"

1

Boolean* In computer science, boolean is a type of primitive data that has two values, which can be considered as 0 or 1, false or true.

  • But is it case-insensitive? Or not?

  • Do you refer to which language ? java for example has 'Boolean test = true;' or 'Boolean test = true;' would give in it

  • Is it the same thing? True, true, TRUE or depends on the language?

  • speaking in java is 'true' or 'false'

  • I don’t remember that in another language be TRUE, or True, I think is true or false;.

  • 1

    In Python is True, in T-SQL whatever (true, TRUE, tRuE and so on).

  • @LINQ is a demigod

Show 2 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.