# I found a bug in SafeREPL the function round does not work!

**URL:** https://discourse.julialang.org/t/i-found-a-bug-in-saferepl-the-function-round-does-not-work/112596
**Category:** New to Julia
**Created:** [April 6, 2024, 1:53am UTC](https://discourse.julialang.org/t/i-found-a-bug-in-saferepl-the-function-round-does-not-work/112596 "2024-04-06T01:53:08Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![John\_Gibson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/john_gibson/32/5321_2.png) [@John\_Gibson](https://discourse.julialang.org/u/John_Gibson)
#### Post date: [April 6, 2024, 1:07pm UTC](https://discourse.julialang.org/t/i-found-a-bug-in-saferepl-the-function-round-does-not-work/112596/3 "2024-04-06T13:07:22Z")

</div>

Have a look at this: [PSA: floating-point arithmetic](https://discourse.julialang.org/t/psa-floating-point-arithmetic/8678). It discusses rounding and printing for Float64 numbers, but BigFloats are the same, just with more digits.

As Ahmed\_Salih said, what you’re seeing is that the closest BigFloat (at default precision) to the decimal number 1.2 is not exactly 1.2, but some base-2 rational number that differs from 1.2 by something like 1e-77.

---

_[View the full topic](https://discourse.julialang.org/t/i-found-a-bug-in-saferepl-the-function-round-does-not-work/112596)._
