rounding off in C++ rounding off in C++ kunletee (Mechanical) (OP) 9 Nov 06 04:53 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 RE: rounding off in C++ nbucska (Electrical) 9 Nov 06 13:28 X_rounded_3= integer_part_of(1000.* X +.5)/1000. Plesae read FAQ240-1032My WEB: <http://geocities.com/nbucska/> RE: rounding off in C++ kunletee (Mechanical) (OP) 10 Nov 06 06:18 nbucska,Thanks a lot. I will try it out.