Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE 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
Joined
Nov 9, 2006
Messages
10
Location
CA
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
 
nbucska,

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

Part and Inventory Search

Sponsor

Back
Top