# Why is Bool an Integer?

**URL:** https://discourse.julialang.org/t/why-is-bool-an-integer/17237
**Category:** General Usage
**Created:** [November 7, 2018, 2:04am UTC](https://discourse.julialang.org/t/why-is-bool-an-integer/17237 "2018-11-07T02:04:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tk3369](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tk3369/32/2824_2.png) [@tk3369](https://discourse.julialang.org/u/tk3369)
#### Post date: [November 7, 2018, 2:04am UTC](https://discourse.julialang.org/t/why-is-bool-an-integer/17237/1 "2018-11-07T02:04:45Z")

</div>

I just realized that `Bool` is a subtype of `Integer`… why? When I have a function that takes an Integer value I don’t expect to get dispatched with `true` or `false` value…

That’s very C-like but makes no logical sense to me otherwise…

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [November 7, 2018, 2:28am UTC](https://discourse.julialang.org/t/why-is-bool-an-integer/17237/2 "2018-11-07T02:28:51Z")

</div>

See the discussion in [make Bool \<: Unsigned (i.e. UInt1) · Issue #19168 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/issues/19168)
