# Vector of Rational{Int64}

**URL:** https://discourse.julialang.org/t/vector-of-rational-int64/95891
**Category:** General Usage
**Tags:** rationals, vector
**Created:** [March 10, 2023, 10:12pm UTC](https://discourse.julialang.org/t/vector-of-rational-int64/95891 "2023-03-10T22:12:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Cougar](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@Cougar](https://discourse.julialang.org/u/Cougar)
#### Post date: [March 10, 2023, 10:12pm UTC](https://discourse.julialang.org/t/vector-of-rational-int64/95891/1 "2023-03-10T22:12:50Z")

</div>

* * *

Does anyone know why the following …

```julia
rationalVector::Vector{Rational{Int64}} = [(2//3), (5//8), (11//17), (44/101)]
for rational in rationalVector
  println(rational)
end # for rational

```

… prints the following …

```julia
6004799503160661//9007199254740992
5//8
5828187753067701//9007199254740992
7847856776407993//18014398509481984

```

I had expected the code to print …

```julia
2//3
5//8
11//17
44//101

```

* * *

Code executed using Julia 1.8.3 in a Windows Command Prompt window.

* * *

---

<div class="post-metadata">

### Author: ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)
#### Post date: [March 10, 2023, 10:14pm UTC](https://discourse.julialang.org/t/vector-of-rational-int64/95891/2 "2023-03-10T22:14:56Z")

</div>

`(44/101)` isn’t `44//101`. The array was promoted to Float64s.
