Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
im not sure how to round a decimal number to a whole......
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.
in the end im trying to make both feed and speed a whole number after it goes thru the formula.
//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
Solved! Go to Solution.