# Size of a bitstype

**URL:** <https://discourse.julialang.org/t/size-of-a-bitstype/3882>\
**Category:** General Usage\
**Created:** [May 23, 2017, 5:02pm UTC](https://discourse.julialang.org/t/size-of-a-bitstype/3882 "2017-05-23T17:02:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ulysses](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ulysses/32/665_2.png) [@ulysses](https://discourse.julialang.org/u/ulysses)\
**Post date:** [May 23, 2017, 5:02pm UTC](https://discourse.julialang.org/t/size-of-a-bitstype/3882/1 "2017-05-23T17:02:54Z")

</div>

I can find out is a type is `bitstype` with `Base.isbits`. Is it possible to find out the size of a `bitstype`-type also?

---

<div class="post-metadata">

**Author:** ![ExpandingMan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/expandingman/32/866_2.png) [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Post date:** [May 23, 2017, 5:09pm UTC](https://discourse.julialang.org/t/size-of-a-bitstype/3882/2 "2017-05-23T17:09:16Z")

</div>

```julia
sizeof(dtype)
# or 
sizeof(value)

```
