# \#inexacterror

**URL:** https://discourse.julialang.org/tag/inexacterror/617.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [InexactError vs OverflowError](https://discourse.julialang.org/t/inexacterror-vs-overflowerror/127108)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 3\
**Last updated:** [March 18, 2025, 7:05pm UTC](https://discourse.julialang.org/t/inexacterror-vs-overflowerror/127108 "2025-03-18T19:05:55Z")

</div>

I have a number type which throws when the result of a binary operation like + or \* is not representable in this type. I think InexactError is the right choice of exception, while OverflowError seems like a bad choice be…

---

## [ALTRO: InexactError: trunc(UInt8, 279)](https://discourse.julialang.org/t/altro-inexacterror-trunc-uint8-279/108954)

<div class="topic-metadata">

**Author:** [@G11](https://discourse.julialang.org/u/G11)\
**Replies:** 1\
**Last updated:** [January 18, 2024, 12:37pm UTC](https://discourse.julialang.org/t/altro-inexacterror-trunc-uint8-279/108954 "2024-01-18T12:37:13Z")

</div>

Hi, I am using the ALTRO package to do trajectory optimization. I get the following InexactError sometimes when I run the code. Sometimes it works fine and there is no error code. Has anybody faced this issue before? Wh…

---

## [InexactError in learnxiny?](https://discourse.julialang.org/t/inexacterror-in-learnxiny/55967)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 0\
**Last updated:** [February 24, 2021, 10:15pm UTC](https://discourse.julialang.org/t/inexacterror-in-learnxiny/55967 "2021-02-24T22:15:41Z")

</div>

The following issue might surprise newcomers to Julia julia\> y1 = \[1:3;\] 3-element Array{Int64,1}: 1 2 3 julia\> y1\[3\] = y1\[3\] + 5.0 8.0 julia\> y1\[3\] = y1\[3\] + 4.99 ERROR: InexactError: Int64(12.99) Stacktrace: \[1\] I…
