Hi everyone! i just wanna ask for the right syntax in rounding off numbers to the nearest tens... for example... 93.18 becomes 93... 98.4 becomes 100..... i try to use the syntax round(epression) but i can just round off numbers into whole number... please help... thanks!

Is it helpful or not plz reply me and ask me syntax i m intersted in solving problem like this bcoz through it i get refreshed in C languge.

u can send me a query on my email akhilgnit @gmail.com

thnx

Posted on Feb 07, 2009

190.

Round to the second digit left of the decimal point.

Round to the second digit left of the decimal point.

May 26, 2014 | Compilers & Programming Tools

53,820

Apr 28, 2014 | Compilers & Programming Tools

92,889.76 rounded to the nearest tenth is 92,889.8

Feb 19, 2014 | Compilers & Programming Tools

92,889.76 rounded to the nearest ten is 92,890

Feb 19, 2014 | Compilers & Programming Tools

650 rounded to the nearest ten is 650.

Feb 18, 2014 | Compilers & Programming Tools

Use the Math.Round() function. It takes two arguments, the first is your number or a variable holding your number and the second is the number of decimal places. This will only round to fractions of a whole number though and you need to round to the nearest 10. So divide your number by 10 before you round to shift the decimal place once to the left and multiply by 10 again afterwards to shift it back again.

answer = Math.Round(32.1 / 10, 0) * 10

answer = Math.Round(32.1 / 10, 0) * 10

Apr 02, 2009 | Microsoft Visual Basic 6.0 for PC

forget its not your cup of tea

Jul 31, 2008 | Compilers & Programming Tools

Apr 20, 2015 | Microsoft Visual Basic 6.0 for PC

274 people viewed this question

Usually answered in minutes!

×