Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

To Round a Measure

Status
Not open for further replies.

Akesson

Mechanical
Feb 28, 2003
134
SE
Hi,

I would like to round a measure in a formula using the "round()" function under Math.
The problem is that I would like to set the number of decimals to use. Not always round to nearest integer.

Example; 13,478mm to 13,5mm (not 13mm)

Anyone who knows how to do this?

/Akesson
 
Replies continue below

Recommended for you

Hi,

Why don't you multiply / divide your value to have the round() you want :

Real.2 = Round(10 * Real.1) / 10

indocti discant et ament meminisse periti
Eric N.
 
Thanks for the solution!

Best regards
Akesson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Top