# Truncate vs. floor

**URL:** <https://discourse.elm-lang.org/t/truncate-vs-floor/474>\
**Category:** Request Feedback\
**Created:** [January 5, 2018, 10:51pm UTC](https://discourse.elm-lang.org/t/truncate-vs-floor/474 "2018-01-05T22:51:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve\_Schafer](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@Steve\_Schafer](https://discourse.elm-lang.org/u/Steve_Schafer)\
**Post date:** [January 5, 2018, 10:51pm UTC](https://discourse.elm-lang.org/t/truncate-vs-floor/474/1 "2018-01-05T22:51:00Z")

</div>

```auto
---- elm-repl 0.18.0 -----------------------------------------------------------
 :help for help, :exit to exit, more at <https://github.com/elm-lang/elm-repl>
--------------------------------------------------------------------------------
> truncate(34358722551.0)
-1015817 : Int
> floor(34358722551.0)
34358722551 : Int
>

```

I’m pretty sure one of these is wrong, although I’m not sure which one. 😕

---

<div class="post-metadata">

**Author:** ![rtfeldman](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/rtfeldman/32/50_2.png) [@rtfeldman](https://discourse.elm-lang.org/u/rtfeldman)\
**Post date:** [January 5, 2018, 11:13pm UTC](https://discourse.elm-lang.org/t/truncate-vs-floor/474/2 "2018-01-05T23:13:26Z")

</div>

This is a [known issue with `truncate`](https://github.com/elm-lang/core/pull/591)!
