Jump to content
  • 0

integer and bool


Skemech

Question

4 answers to this question

Recommended Posts

  • 0

Based on the context of your previous threads, you are talking about ACS. The answer for ACS is nothing, as it only has integer types, so boolean is just an alias of the same thing.

 

You question has different answers in different contexts. Ask a more specific question if you need a different answer.

Edited by Edward850

Share this post


Link to post
  • 0

Ok thank you, I was watching Chubzdoomer, and I was like "Bro what's the difference, the way he described it, it sounds the same"

Share this post


Link to post
  • 0

 A boolean can only ever have the value true or false, often represented as 0 or 1. An integer can by any whole number, including 0 and negative numbers, but no fractions, imaginary numbers, irrational numbers etc. Various programming languages allow you to mix and match these different types, while others are quite strict about the type of value in use.

Some places have a special 'null' value to indicate no value set, which is different from 0. Think of it as the difference between never having done something or done something an unknown amount of times.

 

Never ever assume one programming language / field of use handles numbers and data types in the same way as another unless you explicitly know this is true. Number handling can also change from version to version of a language or depending on which vendor who made the tools you use.

Computers do as they're told, but not what you want or need them to do. Programming is the art of giving the computer the correct instructions. The wrong instructions can give you wrong results, but you might be lucky and it works for your particular case, but not for others.

Share this post


Link to post
Guest
This topic is now closed to further replies.
×
×
  • Create New...