- If you need clarification, ask it in the comment box above.
- Better answers use proper spelling and grammar.
- Provide details, support with references or personal experience.
Tell us some more! Your answer needs to include more details to help people.You can't post answers that contain an email address.Please enter a valid email address.The email address entered is already associated to an account.Login to postPlease use English characters only.
Tip: The max point reward for answering a question is 15.
TenTH = A fraction of a whole, the 'th' tells that.
So, since 25,099 is a 'Whole' number, with No fraction of a whole, or no part/fraction of 1, therefor, rounded to the nearest tenth, it remains the same.
Not sure if this is your question, but, the way we usually round down from 5 and round up from 6. Example: 1.586 rounded to the nearest 100th would be 1.59 , rounded to the nearest 10th would be 1.6... get it?
So, in your example, it would be : 40.98 = nearest 100th , 41.00 = nearest 10th , seeing as the .9 rounded up to a whole number, thus 1 !!
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.
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
×