I have to multiply two decimal numbers: 6,0 * 5,50 which results in: 33,000
How can I cut the last 0 off the result? I want to have 33,00 as the result.
To multiply, I use the query:
var rr = (from s in baza.customer
where userID == s.userID
&& s.data.Month == dat
select s.hours * s.prise.Sum();
Try using string formatting for it:
string.Format("{0:0.##}", number).