# Julia sum issue

**URL:** <https://discourse.julialang.org/t/julia-sum-issue/67566>\
**Category:** General Usage\
**Tags:** question\
**Created:** [September 2, 2021, 11:16am UTC](https://discourse.julialang.org/t/julia-sum-issue/67566 "2021-09-02T11:16:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [September 2, 2021, 11:23am UTC](https://discourse.julialang.org/t/julia-sum-issue/67566/2 "2021-09-02T11:23:45Z")

</div>

Can you produce a [minimum working example](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757)?

Are you sure that `M_B_DG_400` is zero everywhere? If it isn’t then the sum wouldn’t be zero of course

```julia
julia> sum(x*y for x ∈ 0:1, y ∈ 2:3) # one non-zero value for x
5

julia> sum(x*y for x ∈ fill(0, 2), y ∈ 2:3) # x is all zeros
0

```

---

_[View the full topic](https://discourse.julialang.org/t/julia-sum-issue/67566)._
