# Problem with Math.Round

**URL:** <https://forum.dynamobim.com/t/problem-with-math-round/8256>\
**Category:** Developers\
**Created:** [December 15, 2016, 12:46pm UTC](https://forum.dynamobim.com/t/problem-with-math-round/8256 "2016-12-15T12:46:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Milorad\_Lazicic](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/milorad_lazicic/32/18280_2.png) [@Milorad\_Lazicic](https://forum.dynamobim.com/u/Milorad_Lazicic)\
**Post date:** [December 15, 2016, 12:46pm UTC](https://forum.dynamobim.com/t/problem-with-math-round/8256/1 "2016-12-15T12:46:47Z")

</div>

Hi,  
has anybody noticed this issue with Math.Round?  
for example in this test case, 1.5 and 2.5 would be rounded to 2.  
with python round() function it would be correct calculated.

Dynamo Version: 1.2.1.30.83

Regards, Milorad

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/2/0273914a2d9333e59df099167e4a81f5fbde538e.jpg)

[Numbers.xlsx](https://forum.dynamobim.com/uploads/short-url/vaHpqEJzGUa3IC50FnLStWg3juF.xlsx) (7.3 KB)  
[test\_math-round.dyn](https://forum.dynamobim.com/uploads/short-url/nLvFUq9b0hog6axEnpEYqTSR0Br.dyn) (6.4 KB)

---

<div class="post-metadata">

**Author:** ![Ilya\_Kirichenko](https://avatars.discourse-cdn.com/v4/letter/i/f475e1/32.png) [@Ilya\_Kirichenko](https://forum.dynamobim.com/u/Ilya_Kirichenko)\
**Post date:** [May 8, 2017, 9:04pm UTC](https://forum.dynamobim.com/t/problem-with-math-round/8256/2 "2017-05-08T21:04:04Z")

</div>

Same problem here. Is it a mistake or am I missing something?

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/a/9a54539ed94fc2b9d0306ccac32227f4dc28a396.jpg)

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [May 8, 2017, 9:54pm UTC](https://forum.dynamobim.com/t/problem-with-math-round/8256/3 "2017-05-08T21:54:10Z")

</div>

Please use Python node for the time being. This was reported here:

> <https://github.com/DynamoDS/Dynamo/issues/7858>

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [May 9, 2017, 1:36pm UTC](https://forum.dynamobim.com/t/problem-with-math-round/8256/4 "2017-05-09T13:36:24Z")

</div>

This behavior is explained here:

[https://msdn.microsoft.com/en-us/library/wyk4d9cy(v=vs.110).aspx](https://msdn.microsoft.com/en-us/library/wyk4d9cy(v=vs.110).aspx)

Thanks @Michael_Kirschner2 for sharing.
