2
Vote

Multiply and divide ignore the Currency

description

operator * and operator / both ignore the Currency of the amount being modified and return a Money for the current culture. Code should be
 
    public static Money operator *(Money left, Decimal right)
    {
        return new Money(((Decimal)left * right), left._currency);
    }
 
    public static Money operator /(Money left, Decimal right)
    {
        return new Money(((Decimal)left / right), left._currency);
    }
 
thanks for prividing this project
Paul

comments

Marchy wrote Oct 22, 2012 at 2:27 AM

Agreed, had made the same fix

wrote Feb 13, 2013 at 6:11 PM