Just before I went on vacation I had an interesting issue at work.
I was trying to multiple an int by a decimal. Nothing big, but I kept getting this error:
Operator '*' cannot be applied to operands of type 'decimal'
I was floored, what do you mean I can't multiply a decimal in .NET? What in the world are you talking about?
So after a brief search I found the fix.
Basically I had to add an M to the decimal. So instead of:
4 * .95
I needed:
4 * .95M
Honestly still don't understand WHY Microsoft would think this is required, but they do.
Hope this helps you as it helped me.
HT: Asp.net