# Why does squaring generate a different result?

**URL:** <https://fortran-lang.discourse.group/t/why-does-squaring-generate-a-different-result/5578>\
**Category:** Help\
**Created:** [April 15, 2023, 6:38pm UTC](https://fortran-lang.discourse.group/t/why-does-squaring-generate-a-different-result/5578 "2023-04-15T18:38:36Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![garynewport](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@garynewport](https://fortran-lang.discourse.group/u/garynewport)\
**Post date:** [April 15, 2023, 7:02pm UTC](https://fortran-lang.discourse.group/t/why-does-squaring-generate-a-different-result/5578/3 "2023-04-15T19:02:41Z")

</div>

Unfortunately, the variance grows (then contracts) as the model progresses.

I can state that the value is `double precision` (`real(DP)`) and assume that the way the calculation is carried out differs in some way.

---

_[View the full topic](https://fortran-lang.discourse.group/t/why-does-squaring-generate-a-different-result/5578)._
