# Strange round() results?

**URL:** https://discourse.julialang.org/t/strange-round-results/22446
**Category:** New to Julia
**Created:** [March 28, 2019, 9:37am UTC](https://discourse.julialang.org/t/strange-round-results/22446 "2019-03-28T09:37:58Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [March 28, 2019, 1:55pm UTC](https://discourse.julialang.org/t/strange-round-results/22446/5 "2019-03-28T13:55:23Z")

</div>

So the docs for `round` say

> The RoundingMode r controls the direction of the rounding; the default is RoundNearest, which rounds to the nearest integer, with ties (fractional values of 0.5) being rounded to the nearest even integer

And it has your exact example as an example

```julia
 Examples
 ≡≡≡≡≡≡≡≡≡≡

  julia> round(1.7)
  2.0

  julia> round(Int, 1.7)
  2

  julia> round(1.5)
  2.0

  julia> round(2.5)
  2.0

```

See [Rounding - Wikipedia](https://en.wikipedia.org/wiki/Rounding#Round_half_to_even:)

> This is the default rounding mode used in [IEEE 754](https://en.wikipedia.org/wiki/IEEE_754) floating-point operations

---

_[View the full topic](https://discourse.julialang.org/t/strange-round-results/22446)._
