Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

rounding off in C++

Status
Not open for further replies.

kunletee

Mechanical
Nov 9, 2006
10
Dear all,

How do i round off a number to a particular number of decimal places or significant figures. For example,i want to round off 0.0003134444 to 3 decimal places.

Thank you.

kunletee
 
Replies continue below

Recommended for you

nbucska,

Thanks a lot. I will try it out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor