# Assignment to Int Variable Seems Improper

**URL:** <https://verificationacademy.com/forums/t/assignment-to-int-variable-seems-improper/32882>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, systemverilog-datatypes, Real-datatypes\
**Created:** [February 20, 2017, 4:59pm UTC](https://verificationacademy.com/forums/t/assignment-to-int-variable-seems-improper/32882 "2017-02-20T16:59:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sbellock](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/f4b2a3/32.png) [@sbellock](https://verificationacademy.com/forums/u/sbellock)\
**Post date:** [February 20, 2017, 5:16pm UTC](https://verificationacademy.com/forums/t/assignment-to-int-variable-seems-improper/32882/2 "2017-02-20T17:16:44Z")

</div>

_In reply to [Karan](https://verificationacademy.com/forums/t/assignment-to-int-variable-seems-improper/32882):_

Because a / 6 is integer division, and, from section 11.4.3:

> The integer division shall truncate any fractional part toward zero.

---

_[View the full topic](https://verificationacademy.com/forums/t/assignment-to-int-variable-seems-improper/32882)._
