# Wrong rounding the result of division

**URL:** <https://verificationacademy.com/forums/t/wrong-rounding-the-result-of-division/32799>\
**Category:** SystemVerilog\
**Tags:** rounding, division, SystemVerilog\
**Created:** [February 2, 2017, 9:34am UTC](https://verificationacademy.com/forums/t/wrong-rounding-the-result-of-division/32799 "2017-02-02T09:34:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cgales](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/c/ccd318/32.png) [@cgales](https://verificationacademy.com/forums/u/cgales)\
**Post date:** [February 2, 2017, 12:54pm UTC](https://verificationacademy.com/forums/t/wrong-rounding-the-result-of-division/32799/2 "2017-02-02T12:54:49Z")

</div>

_In reply to [saritr](https://verificationacademy.com/forums/t/wrong-rounding-the-result-of-division/32799):_

Two issues:

1. You are attempting to do arithmetic with 16 bit vectors where the intermediate results exceed 16 bits. This will result in overflow conditions affecting your results.

2. You are attempting to conduct floating point arithmetic with integers.

---

_[View the full topic](https://verificationacademy.com/forums/t/wrong-rounding-the-result-of-division/32799)._
