Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

integer parameter from real number

rmckinley

New member
Does anyone know a good way to convert a model parameter from real number to integer (after it is already being used dozens of times in relations)? Or, even better,does anyone know if there is a way to control the display of decimal placesof a parameter when adding itto a note on a drawing?
 
To get x decimal places in a drawing note from a parameter, enter this for your parameter: &parameter[.2] will give you 2 decimal places of the real type parameter.
 
And to convert from real to integer in a relation, use floor(&parameter) {rounded down} or ceil(&parameter) {rounded up}.
 
I know of and use the floor and ceil functionsbut these functions leave several decimal digits on the number.The [.x] method works to control the decimal digit display. Thank you both very much.
 

Sponsor

Back
Top