# \#29056 for integer ranges too?

**URL:** <https://discourse.julialang.org/t/29056-for-integer-ranges-too/15787>\
**Category:** Internals & Design\
**Created:** [October 2, 2018, 12:51pm UTC](https://discourse.julialang.org/t/29056-for-integer-ranges-too/15787 "2018-10-02T12:51:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![loisel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/loisel/32/50626_2.png) [@loisel](https://discourse.julialang.org/u/loisel)\
**Post date:** [October 2, 2018, 12:51pm UTC](https://discourse.julialang.org/t/29056-for-integer-ranges-too/15787/1 "2018-10-02T12:51:45Z")

</div>

Is there any reason why #29056 only applies to float ranges?

**julia\>** (1:5)\*0

**ERROR:** ArgumentError: step cannot be zero

Stacktrace:

[1] **steprange\_last(** ::Int64, ::Int64, ::Int64 **)** at **./range.jl:190**

[2] **Type** at **./range.jl:180** [inlined]

[3] **\_rangestyle** at **./range.jl:93** [inlined]

[4] **\_range** at **./range.jl:91** [inlined]

[5] **#range#29** at **./range.jl:76** [inlined]

[6] **#range** at **./none:0** [inlined]

[7] **broadcasted** at **./broadcast.jl:1006** [inlined]

[8] **broadcasted** at **./broadcast.jl:1166** [inlined]

[9] **broadcast** at **./broadcast.jl:702** [inlined]

[10] \***(** ::UnitRange{Int64}, ::Int64 **)** at **./arraymath.jl:55**

[11] top-level scope at **none:0**

**julia\>** (1:5)\*0.0

0.0:0.0:0.0

[https://github.com/JuliaLang/julia/pull/29056](https://github.com/JuliaLang/julia/pull/29056)

Edit: this is on 1.0.1
