Question about Microsoft Visual Basic 6.0 for PC

1 Answer

Rounding Off numbers to the nearest tens

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!

Posted by on

1 Answer

  • Level 1:

    An expert who has achieved level 1.

  • Contributor
  • 1 Answer

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

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

How do I round off 191.1333 to the nearest ten ?


190.

Round to the second digit left of the decimal point.

May 26, 2014 | Compilers & Programming Tools

1 Answer

92,889.76 round to nearest 10th


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

Feb 19, 2014 | Compilers & Programming Tools

1 Answer

92,889.76 round to the nearest 10


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

Feb 19, 2014 | Compilers & Programming Tools

1 Answer

How to round 650 to the nearest 10?


650 rounded to the nearest ten is 650.

Feb 18, 2014 | Compilers & Programming Tools

2 Answers

VB 6.0 ROUNDING A NUMBER


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

Apr 02, 2009 | Microsoft Visual Basic 6.0 for PC

1 Answer

Formatting/Rounding number


forget its not your cup of tea

Jul 31, 2008 | Compilers & Programming Tools

Not finding what you are looking for?
Microsoft Visual Basic 6.0 for PC Logo

274 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Compilers & Programming Tools Experts

Robin Hill
Robin Hill

Level 3 Expert

1251 Answers

Alex Krenvalk

Level 2 Expert

401 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Are you a Microsoft Compiler and Programming Tool Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...