Round(10773.31)
Round(10775.55)
Round(10778.55)
i want like 10780 in linq or .net
any one help me please
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
piyush sardharaPosted Apr 9, 2011, 5:17 AM
CrishPosted Apr 9, 2011, 4:55 AM
d=10773.31;
public static double RealRound(double d, int decimals)
{
return Math.Round(d + decimals/10.0, decimals);
}
VulpesPosted Apr 8, 2011, 4:51 PM
As you'll see I answered it (hopefully correctly) in a similar way to what Sam has just described.
Sam HobbsPosted Apr 8, 2011, 4:31 PM
Suthish NairPosted Apr 8, 2011, 12:12 PM