linq integer division convert to percentage without decimal points
((int)(((decimal)(a.Category.Sum(l => l.Quantity) : 0) / MyDividerInteger) * 100)).ToString() + "%",
Achievement provides the only real pleasure in life
((int)(((decimal)(a.Category.Sum(l => l.Quantity) : 0) / MyDividerInteger) * 100)).ToString() + "%",
Posted by Unknown at 11:40 pm
No comments:
Post a Comment