<?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: rounding numbers up or down in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/rounding-numbers-up-or-down/m-p/12913536#M1529</link>
    <description>Worked good</description>
    <pubDate>Tue, 23 Jul 2024 02:33:13 GMT</pubDate>
    <dc:creator>jsweatherbie</dc:creator>
    <dc:date>2024-07-23T02:33:13Z</dc:date>
    <item>
      <title>rounding numbers up or down</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/rounding-numbers-up-or-down/m-p/12913442#M1526</link>
      <description>&lt;P&gt;im not sure how to round a decimal number to a whole......&amp;nbsp;&lt;BR /&gt;i have this macro to make feed and speeds and to apply it but the problem im having is that itll have a decimal and when i post it... it will error due to a decimal number with the rpm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the end im trying to make both feed and speed a whole number after it goes thru the formula.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;//CREATED BY: JAMES 

REAL $drillRpm = 250/$tool.Diameter
EDIT RPM $drillRpm
RESET TOOLPATH FEEDRATE

REAL $drillIpm = '$drillRpm * 0.005'
EDIT FRATE '$drillIpm'

RESET TOOLPATH FEEDRATE&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Jul 2024 01:19:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/rounding-numbers-up-or-down/m-p/12913442#M1526</guid>
      <dc:creator>jsweatherbie</dc:creator>
      <dc:date>2024-07-23T01:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: rounding numbers up or down</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/rounding-numbers-up-or-down/m-p/12913495#M1527</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Try this:

//CREATED BY: JAMES 

INT $drillRpm = 250/$tool.Diameter
EDIT RPM $drillRpm
RESET TOOLPATH FEEDRATE

REAL $drillIpm = $drillRpm * 0.005
EDIT FRATE $drillIpm

RESET TOOLPATH FEEDRATE&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 02:10:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/rounding-numbers-up-or-down/m-p/12913495#M1527</guid>
      <dc:creator>nguyenthinhvt95</dc:creator>
      <dc:date>2024-07-23T02:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: rounding numbers up or down</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/rounding-numbers-up-or-down/m-p/12913529#M1528</link>
      <description>Nothing was changed ...</description>
      <pubDate>Tue, 23 Jul 2024 02:28:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/rounding-numbers-up-or-down/m-p/12913529#M1528</guid>
      <dc:creator>jsweatherbie</dc:creator>
      <dc:date>2024-07-23T02:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: rounding numbers up or down</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/rounding-numbers-up-or-down/m-p/12913536#M1529</link>
      <description>Worked good</description>
      <pubDate>Tue, 23 Jul 2024 02:33:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/rounding-numbers-up-or-down/m-p/12913536#M1529</guid>
      <dc:creator>jsweatherbie</dc:creator>
      <dc:date>2024-07-23T02:33:13Z</dc:date>
    </item>
    <item>
      <title>Betreff: rounding numbers up or down</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/rounding-numbers-up-or-down/m-p/12913751#M1530</link>
      <description>&lt;P&gt;you can use the round() function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="icse_0-1721714297055.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1389785iD57DEE0A1D14E5E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="icse_0-1721714297055.png" alt="icse_0-1721714297055.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;//CREATED BY: JAMES 

REAL $drillRpm = 250/$tool.Diameter
$drillRpm = round($drillRpm,0)
EDIT RPM ${drillRpm}
RESET TOOLPATH FEEDRATE

REAL $drillIpm = $drillRpm * 0.005
$drillIpm = round($drillIpm,0)
EDIT FRATE ${drillIpm}

RESET TOOLPATH FEEDRATE&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 06:02:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/rounding-numbers-up-or-down/m-p/12913751#M1530</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-07-23T06:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: rounding numbers up or down</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/rounding-numbers-up-or-down/m-p/12913783#M1531</link>
      <description>&lt;P&gt;I think its better to change format of "Feed" in the post processor to "Integer".&amp;nbsp;&lt;/P&gt;&lt;P&gt;then you always get round numbers.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 06:23:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/rounding-numbers-up-or-down/m-p/12913783#M1531</guid>
      <dc:creator>hrh46</dc:creator>
      <dc:date>2024-07-23T06:23:58Z</dc:date>
    </item>
  </channel>
</rss>

