# Julia computations with large numbers showing results in the form of e raise to

**URL:** <https://discourse.julialang.org/t/julia-computations-with-large-numbers-showing-results-in-the-form-of-e-raise-to/5202>\
**Category:** New to Julia\
**Tags:** syntax\
**Created:** [August 3, 2017, 9:00am UTC](https://discourse.julialang.org/t/julia-computations-with-large-numbers-showing-results-in-the-form-of-e-raise-to/5202 "2017-08-03T09:00:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Devi\_Sree](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@Devi\_Sree](https://discourse.julialang.org/u/Devi_Sree)\
**Post date:** [August 3, 2017, 9:00am UTC](https://discourse.julialang.org/t/julia-computations-with-large-numbers-showing-results-in-the-form-of-e-raise-to/5202/1 "2017-08-03T09:00:06Z")

</div>

I am beginner in Julia. I want to know when I give a multiple a large number with a decimal (or divide) suppose `45349632 * 0.4` , I get the answer as `1.81398528e7` which is correct but why is the value shown in this way when `45349632` can be displayed as such which is \> answer itself. It seems to appear with computations… How can I get the value without decimal point and e. I tried multiplying the number with 10,100…but then that shows `e8,9`…

---

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [August 3, 2017, 9:12am UTC](https://discourse.julialang.org/t/julia-computations-with-large-numbers-showing-results-in-the-form-of-e-raise-to/5202/2 "2017-08-03T09:12:40Z")

</div>

> [@Devi\_Sree](#):
>
> 1.81398528e7

This means `1.81398528 * 10^7`, the `e` is not the mathematical constant, it denotes that the number following is the exponent with 10 as base.

> **[Scientific notation](https://en.wikipedia.org/wiki/Scientific_notation)**
>
> Scientific notation is a way of expressing numbers that are too large or too small to be conveniently written in decimal form, since to do so would require writing out an inconveniently long string of digits. It may be referred to as scientific form or standard index form, or standard form in the United Kingdom. This base ten notation is commonly used by scientists, mathematicians, and engineers, in part because it can simplify certain arithmetic operations. On scientific calculators it is usu...

---

<div class="post-metadata">

**Author:** ![Devi\_Sree](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@Devi\_Sree](https://discourse.julialang.org/u/Devi_Sree)\
**Post date:** [August 3, 2017, 9:40am UTC](https://discourse.julialang.org/t/julia-computations-with-large-numbers-showing-results-in-the-form-of-e-raise-to/5202/3 "2017-08-03T09:40:26Z")

</div>

Ok I know that. My issue was that I wanted to set an array by indexing another array

```
  arr = features[i:0.4*n,1:8] where n = 45349632. 

```

The error showed was ERROR: ArgumentError: invalid index: 1.0. I wanted to get rid of the e raise and display the full value as such…Luckily I could fix it myself

```
  features[i:Int(0.4*n),1:8]

```

---

<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:** [August 3, 2017, 9:47am UTC](https://discourse.julialang.org/t/julia-computations-with-large-numbers-showing-results-in-the-form-of-e-raise-to/5202/4 "2017-08-03T09:47:46Z")

</div>

float times integer is a float and in Julia you can’t index with floats (into the standard arrays).

---

<div class="post-metadata">

**Author:** ![Devi\_Sree](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@Devi\_Sree](https://discourse.julialang.org/u/Devi_Sree)\
**Post date:** [August 3, 2017, 9:59am UTC](https://discourse.julialang.org/t/julia-computations-with-large-numbers-showing-results-in-the-form-of-e-raise-to/5202/5 "2017-08-03T09:59:06Z")

</div>

This works…

```
   julia> Int(25000 * 0.4)
  10000

   julia> Int(45349632/4)
  11337408

```

It is true when Int(45349632\*0.4) is given

```
      julia> Int(45349632 * 0.4)
      ERROR: InexactError()
      in convert(::Type{Int64}, ::Float64) at ./float.jl:656
      in Int64(::Float64) at ./sysimg.jl:66

```

is shown…

---

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [August 3, 2017, 10:19am UTC](https://discourse.julialang.org/t/julia-computations-with-large-numbers-showing-results-in-the-form-of-e-raise-to/5202/6 "2017-08-03T10:19:51Z")

</div>

You can round to the nearest integer with `round(Int,x)`

---

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [August 3, 2017, 12:09pm UTC](https://discourse.julialang.org/t/julia-computations-with-large-numbers-showing-results-in-the-form-of-e-raise-to/5202/7 "2017-08-03T12:09:05Z")

</div>

Or `45349632 ÷ 4` (typed as “45349632 \div tabulator 4”)
