Forum General
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

total value i want to in point plz help me i have tired

sandy3080sandy3080 Member ✭✭

This Is My Code--
playerDetailsInfo.BattingAverage = playerDetailsInfo.TotalRun / playerDetailsInfo.TotalMatches;

i got total Run 26 and Total Matches 3 , ans will be 8.66 , but ans got 8
Batting Average i double data type and TotalRun and TotalMatches is int type

plzzzz help me any suggetion

Best Answer


  • sandy3080sandy3080 Member ✭✭

    thanks @johnHardMan

Sign In or Register to comment.