# What are the truncation/conversion rules in this expression?

**URL:** <https://verificationacademy.com/forums/t/what-are-the-truncation-conversion-rules-in-this-expression/40017>\
**Category:** SystemVerilog\
**Tags:** array-manipulation-methods, SystemVerilog, countones, array-sum\
**Created:** [February 1, 2022, 3:06am UTC](https://verificationacademy.com/forums/t/what-are-the-truncation-conversion-rules-in-this-expression/40017 "2022-02-01T03:06:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [February 1, 2022, 7:47am UTC](https://verificationacademy.com/forums/t/what-are-the-truncation-conversion-rules-in-this-expression/40017/2 "2022-02-01T07:47:22Z")

</div>

_In reply to [a\_stod](https://verificationacademy.com/forums/t/what-are-the-truncation-conversion-rules-in-this-expression/40017):_

It looks like several tools have problems with this code. The correct answer is 256.

This Siemens EDA sponsored public forum is not for discussing tool specific usage or issues. Please contact your tool vendor directly for support.

---

_[View the full topic](https://verificationacademy.com/forums/t/what-are-the-truncation-conversion-rules-in-this-expression/40017)._
