<?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: Dim as Integer only rounds up in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/dim-as-integer-only-rounds-up/m-p/10050452#M53551</link>
    <description>&lt;P&gt;Are you talking about doing math and conversions within iLogic rules, VBA macro, or within the equation of a parameter within the parameters dialog box.&lt;/P&gt;&lt;P&gt;If you are asking about equations in parameters, via the dialog box, see the following links for reference.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-0106478A-B340-4164-A81B-866062877D60" target="_blank" rel="noopener"&gt;Expression Reference for Numeric Parameters&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-EE98BCED-5623-4E3B-9E98-432C6738B081" target="_blank" rel="noopener"&gt;Functions, prefixes, and algebraic operators&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are asking about math and unit conversions within iLogic rules, see the following links for reference.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-8F529B43-8779-42BB-A8C1-39F091C1FC31" target="_blank" rel="noopener"&gt;Math Functions Reference (iLogic)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/functions/math-functions" target="_blank" rel="noopener"&gt;Math Functions (Visual Basic)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/functions/type-conversion-functions" target="_self"&gt;Type Conversion Functions (Visual Basic)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN style="background-color: green; color: white;"&gt;&lt;STRONG&gt;ACCEPT SOLUTION&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;If you have time, please... Vote For &lt;A href="https://forums.autodesk.com/t5/forums/recentpostspage/post-type/message/interaction-style/idea/user-id/7812054/" target="_blank" rel="noopener"&gt;My IDEAS &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt;&lt;/SPAN&gt;&lt;/A&gt;or you can Explore &lt;A href="https://knowledge.autodesk.com/profile/LTSUSR7HXMSAE/articles" target="_blank" rel="noopener"&gt;My CONTRIBUTIONS &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/" target="_blank" rel="noopener"&gt;Inventor 2021 Help &lt;/A&gt;| &lt;A href="https://forums.autodesk.com/t5/inventor-forum/bd-p/78/" target="_blank" rel="noopener"&gt;Inventor Forum &lt;/A&gt;| &lt;A href="https://forums.autodesk.com/t5/inventor-customization/bd-p/120/" target="_blank" rel="noopener"&gt;Inventor Customization Forum &lt;/A&gt;| &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232/" target="_blank" rel="noopener"&gt;Inventor Ideas Forum &lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Feb 2021 12:15:42 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2021-02-02T12:15:42Z</dc:date>
    <item>
      <title>Dim as Integer only rounds up</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dim-as-integer-only-rounds-up/m-p/10050087#M53546</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i want to round up an integer up, so that it only ends up.&lt;/P&gt;&lt;P&gt;For example: value is 0.01 but the integer wil be 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does somenone know how i can program this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Joop&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 09:17:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dim-as-integer-only-rounds-up/m-p/10050087#M53546</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-02T09:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dim as Integer only rounds up</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dim-as-integer-only-rounds-up/m-p/10050097#M53547</link>
      <description>&lt;P&gt;Check the below example that may help you. Please note that, when you say integer, as a default it only allows the whole number, so fundamentally you can not add a decimal number in an integer data type. In your iLogic code, I would suggest if you are using the decimal number (like 0.01) please assign them Double or Float data type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For your query here, you can use Math.Ceiling function in iLogic to round up any decimal number. see below example that will help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;x&lt;/SPAN&gt; = 0.01 ' assigned x as 0.01

&lt;SPAN&gt;y&lt;/SPAN&gt; = &lt;SPAN&gt;Math&lt;/SPAN&gt;.&lt;SPAN&gt;Ceiling&lt;/SPAN&gt;(&lt;SPAN&gt;x&lt;/SPAN&gt;) ' rounding up x to 1 and storing in another variable called y

&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;y&lt;/SPAN&gt;) ' showing y in messagebox.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 09:24:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dim-as-integer-only-rounds-up/m-p/10050097#M53547</guid>
      <dc:creator>dutt.thakar</dc:creator>
      <dc:date>2021-02-02T09:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dim as Integer only rounds up</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dim-as-integer-only-rounds-up/m-p/10050104#M53548</link>
      <description>&lt;P&gt;What did you try and what happend?&lt;BR /&gt;&lt;BR /&gt;(simple search on this forum:&amp;nbsp;&lt;A title="round-up-to-the-next-whole-number" href="https://forums.autodesk.com/t5/inventor-customization/round-up-to-the-next-whole-number/m-p/9992879#M119789" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-customization/round-up-to-the-next-whole-number/m-p/9992879#M119789&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 09:29:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dim-as-integer-only-rounds-up/m-p/10050104#M53548</guid>
      <dc:creator>_dscholtes_</dc:creator>
      <dc:date>2021-02-02T09:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dim as Integer only rounds up</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dim-as-integer-only-rounds-up/m-p/10050165#M53549</link>
      <description>&lt;P&gt;i read your post over the Snippets of Math. this should work but how can i set the ceil() in a code?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 10:01:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dim-as-integer-only-rounds-up/m-p/10050165#M53549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-02T10:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dim as Integer only rounds up</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dim-as-integer-only-rounds-up/m-p/10050397#M53550</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can do like this Ceil(0.01). Enter the value that you want to round up in bracket, To return that value, you need to store it in any parameter or variable and then you can use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, read carefully my above post where I have tried explaining the same with an example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 11:49:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dim-as-integer-only-rounds-up/m-p/10050397#M53550</guid>
      <dc:creator>dutt.thakar</dc:creator>
      <dc:date>2021-02-02T11:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dim as Integer only rounds up</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dim-as-integer-only-rounds-up/m-p/10050452#M53551</link>
      <description>&lt;P&gt;Are you talking about doing math and conversions within iLogic rules, VBA macro, or within the equation of a parameter within the parameters dialog box.&lt;/P&gt;&lt;P&gt;If you are asking about equations in parameters, via the dialog box, see the following links for reference.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-0106478A-B340-4164-A81B-866062877D60" target="_blank" rel="noopener"&gt;Expression Reference for Numeric Parameters&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-EE98BCED-5623-4E3B-9E98-432C6738B081" target="_blank" rel="noopener"&gt;Functions, prefixes, and algebraic operators&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are asking about math and unit conversions within iLogic rules, see the following links for reference.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-8F529B43-8779-42BB-A8C1-39F091C1FC31" target="_blank" rel="noopener"&gt;Math Functions Reference (iLogic)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/functions/math-functions" target="_blank" rel="noopener"&gt;Math Functions (Visual Basic)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/functions/type-conversion-functions" target="_self"&gt;Type Conversion Functions (Visual Basic)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN style="background-color: green; color: white;"&gt;&lt;STRONG&gt;ACCEPT SOLUTION&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;If you have time, please... Vote For &lt;A href="https://forums.autodesk.com/t5/forums/recentpostspage/post-type/message/interaction-style/idea/user-id/7812054/" target="_blank" rel="noopener"&gt;My IDEAS &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt;&lt;/SPAN&gt;&lt;/A&gt;or you can Explore &lt;A href="https://knowledge.autodesk.com/profile/LTSUSR7HXMSAE/articles" target="_blank" rel="noopener"&gt;My CONTRIBUTIONS &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/" target="_blank" rel="noopener"&gt;Inventor 2021 Help &lt;/A&gt;| &lt;A href="https://forums.autodesk.com/t5/inventor-forum/bd-p/78/" target="_blank" rel="noopener"&gt;Inventor Forum &lt;/A&gt;| &lt;A href="https://forums.autodesk.com/t5/inventor-customization/bd-p/120/" target="_blank" rel="noopener"&gt;Inventor Customization Forum &lt;/A&gt;| &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232/" target="_blank" rel="noopener"&gt;Inventor Ideas Forum &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 12:15:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dim-as-integer-only-rounds-up/m-p/10050452#M53551</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-02-02T12:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dim as Integer only rounds up</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dim-as-integer-only-rounds-up/m-p/10083824#M53552</link>
      <description>&lt;P&gt;thank you for your help, i'm going to read the linked pages.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 09:46:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dim-as-integer-only-rounds-up/m-p/10083824#M53552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-15T09:46:16Z</dc:date>
    </item>
  </channel>
</rss>

