示例#1
0
 public static Money operator *(Money h, Money item)
 {
     decimal result = Math.Round((h.Value * item.Value), h._scale);
     Money ret = new Money(h._scale, h._format);
     ret.Value = result;
     return ret;
 }
示例#2
0
 public static Money FromDecimal(decimal item)
 {
     Money i = new Money();
     i.Value = item;
     return i;
 }