# Problems when comparing Int16 and Int64

**URL:** <https://discourse.julialang.org/t/problems-when-comparing-int16-and-int64/47615>\
**Category:** New to Julia\
**Created:** [October 1, 2020, 7:18pm UTC](https://discourse.julialang.org/t/problems-when-comparing-int16-and-int64/47615 "2020-10-01T19:18:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrey2185](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/andrey2185/32/9889_2.png) [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Post date:** [October 1, 2020, 7:18pm UTC](https://discourse.julialang.org/t/problems-when-comparing-int16-and-int64/47615/1 "2020-10-01T19:18:23Z")

</div>

Hello,  
why did this happen?

julia\> Int16(200) == 200  
true

julia\> Int16(200) !== 200  
true

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [October 1, 2020, 7:21pm UTC](https://discourse.julialang.org/t/problems-when-comparing-int16-and-int64/47615/2 "2020-10-01T19:21:27Z")

</div>

`==` and `===` mean different things in Julia.

Maybe this will help, count the number of characters in each one.

```julia
julia> Int16(200) == Int64(200)
true

julia> Int16(200) === Int64(200)
false

julia> Int16(200) != Int64(200)
false

julia> Int16(200) !== Int64(200)
true

```

---

<div class="post-metadata">

**Author:** ![andrey2185](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/andrey2185/32/9889_2.png) [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Post date:** [October 1, 2020, 7:29pm UTC](https://discourse.julialang.org/t/problems-when-comparing-int16-and-int64/47615/3 "2020-10-01T19:29:48Z")

</div>

exactly, just a syntax error)
