# Boolean subtype confusion

**URL:** <https://discourse.julialang.org/t/boolean-subtype-confusion/21705>\
**Category:** New to Julia\
**Created:** [March 10, 2019, 2:56pm UTC](https://discourse.julialang.org/t/boolean-subtype-confusion/21705 "2019-03-10T14:56:51Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [March 10, 2019, 4:48pm UTC](https://discourse.julialang.org/t/boolean-subtype-confusion/21705/7 "2019-03-10T16:48:41Z")

</div>

> [@joedoewoe2](#):
>
> > What interpreter?
> 
> Julia

Perhaps you meant the compiler.

> [@joedoewoe2](#):
>
> julia\> bitstring(y)  
> “00000000”

Did you expect a different interpretation? What do you want to use it for?

If you just want to use `::Bool` values in _computation_, they behave like the number `0` and `1` for practical purposes, except that they have a specific type, which is required in some contexts (eg `if`), and cannot accept any other value (I am ignoring some corner cases here).

The actual representation is not that important, except if you are interfacing with C or in some corner cases.

(Also, please [quote your code](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530).)

---

_[View the full topic](https://discourse.julialang.org/t/boolean-subtype-confusion/21705)._
