# Beginner: LoadError: InexactError: trunc..when convert dataframe

**URL:** <https://discourse.julialang.org/t/beginner-loaderror-inexacterror-trunc-when-convert-dataframe/18151>\
**Category:** General Usage\
**Created:** [November 29, 2018, 4:28pm UTC](https://discourse.julialang.org/t/beginner-loaderror-inexacterror-trunc-when-convert-dataframe/18151 "2018-11-29T16:28:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [November 30, 2018, 10:39am UTC](https://discourse.julialang.org/t/beginner-loaderror-inexacterror-trunc-when-convert-dataframe/18151/2 "2018-11-30T10:39:38Z")

</div>

Please read [Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757), and try to produce an MWE (minimum working example) of your code, to make it easier for others to help you.

From what you posted it appears that your code is trying to convert the number 128 into an `Int8` format, which is failing as `Int8` only supports the range from -128 to 127 (see the docs [here](https://docs.julialang.org/en/v1/manual/integers-and-floating-point-numbers/index.html) for more explanation of the different number types).

It is hard to say how you should modify your code without knowing what you are actually trying to do.

---

_[View the full topic](https://discourse.julialang.org/t/beginner-loaderror-inexacterror-trunc-when-convert-dataframe/18151)._
