<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Round up values in drawing table - calculating issue in 3D Part &amp; Assembly Design</title>
    <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Round-up-values-in-drawing-table-calculating-issue/m-p/683779#M115991</link>
    <description>&lt;P&gt;In your formula, you are flooring the weight to two decimals and then you multiply by the number of items. My guess is that your weight is being rounded to 1.39, then multiplied by 196...which results in 272.44&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So try this formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MASSE_TOT = floor((rpt_qty+asm_mbr_nbr_spares_pt)*asm_mbr_masse_kg,2)&lt;/P&gt;</description>
    <pubDate>Mon, 24 Aug 2020 07:48:13 GMT</pubDate>
    <dc:creator>HamsterNL</dc:creator>
    <dc:date>2020-08-24T07:48:13Z</dc:date>
    <item>
      <title>Round up values in drawing table - calculating issue</title>
      <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Round-up-values-in-drawing-table-calculating-issue/m-p/683766#M115990</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;an issue here with calculated values in a drawing table (please see attached picture).&lt;/P&gt;
&lt;P&gt;Using more digits after the comma is not an option.&lt;/P&gt;
&lt;P&gt;If instead floor a ceil option is used the the wrong value goes correct, but the rest of the values for the total weight goes wrong.&lt;/P&gt;
&lt;P&gt;Is there a way to have all values correctly calculated.&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 07:04:28 GMT</pubDate>
      <guid>https://community.ptc.com/t5/3D-Part-Assembly-Design/Round-up-values-in-drawing-table-calculating-issue/m-p/683766#M115990</guid>
      <dc:creator>GI</dc:creator>
      <dc:date>2020-08-24T07:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Round up values in drawing table - calculating issue</title>
      <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Round-up-values-in-drawing-table-calculating-issue/m-p/683779#M115991</link>
      <description>&lt;P&gt;In your formula, you are flooring the weight to two decimals and then you multiply by the number of items. My guess is that your weight is being rounded to 1.39, then multiplied by 196...which results in 272.44&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So try this formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MASSE_TOT = floor((rpt_qty+asm_mbr_nbr_spares_pt)*asm_mbr_masse_kg,2)&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 07:48:13 GMT</pubDate>
      <guid>https://community.ptc.com/t5/3D-Part-Assembly-Design/Round-up-values-in-drawing-table-calculating-issue/m-p/683779#M115991</guid>
      <dc:creator>HamsterNL</dc:creator>
      <dc:date>2020-08-24T07:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Round up values in drawing table - calculating issue</title>
      <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Round-up-values-in-drawing-table-calculating-issue/m-p/683804#M115992</link>
      <description>&lt;P&gt;Thank you. Results are close to the desired values, but still not 100% ok.&lt;/P&gt;
&lt;P&gt;is&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; must be&lt;/P&gt;
&lt;P&gt;1268.88&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1268.37 very close but not ok&lt;/P&gt;
&lt;P&gt;351.36&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 350.4 close but, not ok&lt;/P&gt;
&lt;P&gt;273.89&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 274.4 not ok&lt;/P&gt;
&lt;P&gt;11.97&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11.97 ok&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 09:08:00 GMT</pubDate>
      <guid>https://community.ptc.com/t5/3D-Part-Assembly-Design/Round-up-values-in-drawing-table-calculating-issue/m-p/683804#M115992</guid>
      <dc:creator>GI</dc:creator>
      <dc:date>2020-08-24T09:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Round up values in drawing table - calculating issue</title>
      <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Round-up-values-in-drawing-table-calculating-issue/m-p/683809#M115993</link>
      <description>&lt;P&gt;Can you show more decimals in the UNIT column? (Something like 8 decimals)&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 09:27:52 GMT</pubDate>
      <guid>https://community.ptc.com/t5/3D-Part-Assembly-Design/Round-up-values-in-drawing-table-calculating-issue/m-p/683809#M115993</guid>
      <dc:creator>HamsterNL</dc:creator>
      <dc:date>2020-08-24T09:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Round up values in drawing table - calculating issue</title>
      <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Round-up-values-in-drawing-table-calculating-issue/m-p/683810#M115994</link>
      <description>&lt;P&gt;Unfortunately not. ;-(&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 09:34:43 GMT</pubDate>
      <guid>https://community.ptc.com/t5/3D-Part-Assembly-Design/Round-up-values-in-drawing-table-calculating-issue/m-p/683810#M115994</guid>
      <dc:creator>GI</dc:creator>
      <dc:date>2020-08-24T09:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Round up values in drawing table - calculating issue</title>
      <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Round-up-values-in-drawing-table-calculating-issue/m-p/683836#M115995</link>
      <description>&lt;P&gt;Without seeing the actual numbers involved, I'm guessing what you want is:&lt;BR /&gt;(1) The unit mass is a rounded value, displayed using something like MASS[.2]. When this type of display is done, it rounds the number up/down depending on the rest of the digits.&lt;/P&gt;
&lt;P&gt;(2) You want the total mass to be calculated as the total quantity (parts + spares) times this rounded value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Trouble is, floor doesn't give you the rounded value, it just chops off the remainder of the decimal places, more a text operation than a mathematical one. The "trick" is to make the floor operation act like a rounding function by adding the appropriate half value. So, instead of &lt;STRONG&gt;&lt;FONT face="book antiqua,palatino"&gt;floor(mass,2)&lt;/FONT&gt;&lt;/STRONG&gt;, you can use &lt;STRONG&gt;&lt;FONT face="book antiqua,palatino"&gt;floor((mass+0.005),2)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;. That will effectively "round up" when appropriate.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 11:17:48 GMT</pubDate>
      <guid>https://community.ptc.com/t5/3D-Part-Assembly-Design/Round-up-values-in-drawing-table-calculating-issue/m-p/683836#M115995</guid>
      <dc:creator>KenFarley</dc:creator>
      <dc:date>2020-08-24T11:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Round up values in drawing table - calculating issue</title>
      <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Round-up-values-in-drawing-table-calculating-issue/m-p/683839#M115996</link>
      <description>&lt;P&gt;Thank you. Now it works as expected.&lt;/P&gt;
&lt;P&gt;Have a nice day.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 11:34:05 GMT</pubDate>
      <guid>https://community.ptc.com/t5/3D-Part-Assembly-Design/Round-up-values-in-drawing-table-calculating-issue/m-p/683839#M115996</guid>
      <dc:creator>GI</dc:creator>
      <dc:date>2020-08-24T11:34:05Z</dc:date>
    </item>
  </channel>
</rss>

