# How do you convert float to Int?

**URL:** <https://forum.crystal-lang.org/t/how-do-you-convert-float-to-int/1337>\
**Category:** Help & Support\
**Created:** [November 8, 2019, 6:11pm UTC](https://forum.crystal-lang.org/t/how-do-you-convert-float-to-int/1337 "2019-11-08T18:11:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacob](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/jacob/32/615_2.png) [@jacob](https://forum.crystal-lang.org/u/jacob)\
**Post date:** [November 8, 2019, 6:11pm UTC](https://forum.crystal-lang.org/t/how-do-you-convert-float-to-int/1337/1 "2019-11-08T18:11:56Z")

</div>

Sorry for this newbie question, I tried` round` and `as`, they don’t for that.

---

<div class="post-metadata">

**Author:** ![asterite](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/asterite/32/60_2.png) [@asterite](https://forum.crystal-lang.org/u/asterite)\
**Post date:** [November 8, 2019, 6:27pm UTC](https://forum.crystal-lang.org/t/how-do-you-convert-float-to-int/1337/2 "2019-11-08T18:27:11Z")

</div>

[to\_i](https://crystal-lang.org/api/0.31.1/Float64.html#to_i:Int32-instance-method)
