# Weird bug: Printing a variable vs. not printing a variable give different results

**URL:** https://discourse.julialang.org/t/weird-bug-printing-a-variable-vs-not-printing-a-variable-give-different-results/12728
**Category:** Optimization (Mathematical)
**Created:** [July 30, 2018, 12:15am UTC](https://discourse.julialang.org/t/weird-bug-printing-a-variable-vs-not-printing-a-variable-give-different-results/12728 "2018-07-30T00:15:54Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![DNF](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dnf/32/10191_2.png) [@DNF](https://discourse.julialang.org/u/DNF)
#### Post date: [July 30, 2018, 7:21am UTC](https://discourse.julialang.org/t/weird-bug-printing-a-variable-vs-not-printing-a-variable-give-different-results/12728/5 "2018-07-30T07:21:25Z")

</div>

In addition to posting a “minimal working example”, remember to post the _actual_ code instead of an _image_ of the code, since one cannot cut and paste from an image. Rember to put the code inside backticks (see here: [PSA: how to quote code with backticks](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530))

---

_[View the full topic](https://discourse.julialang.org/t/weird-bug-printing-a-variable-vs-not-printing-a-variable-give-different-results/12728)._
