ToDecimal() public static method

public static ToDecimal ( Currency c ) : Decimal
c Currency
return Decimal
Exemplo n.º 1
0
        // Constructs a Decimal from a Currency value.
        //
        internal Decimal(Currency value)
        {
            Decimal temp = Currency.ToDecimal(value);

            this.lo    = temp.lo;
            this.mid   = temp.mid;
            this.hi    = temp.hi;
            this.flags = temp.flags;
        }
Exemplo n.º 2
0
        internal Decimal(Currency value)
        {
            decimal num = Currency.ToDecimal(value);

            this.lo    = num.lo;
            this.mid   = num.mid;
            this.hi    = num.hi;
            this.flags = num.flags;
        }
Exemplo n.º 3
0
 public static Decimal FromOACurrency(long cy)
 {
     return(Currency.ToDecimal(Currency.FromOACurrency(cy)));
 }
Exemplo n.º 4
0
 // Constructs a Decimal from a Currency value.
 //
 internal Decimal(Currency value)
 {
     this = Currency.ToDecimal(value);
 }