Exemplo n.º 1
0
        public Para(Decimal value)
        {
            checkValue(value);

            _units           = (Int64)value;
            _decimalFraction = (Int32)Decimal.Round((value - _units) * FractionScale);

            if (_decimalFraction >= FractionScale)
            {
                _units          += 1;
                _decimalFraction = _decimalFraction - (Int32)FractionScale;
            }

            _döviz = Döviz.FromCurrentCulture();
        }
Exemplo n.º 2
0
 private Para(Int64 units, Int32 fraction, Döviz currency)
 {
     _units           = units;
     _decimalFraction = fraction;
     _döviz           = currency;
 }
Exemplo n.º 3
0
 public Para(Decimal value, Döviz currency)
     : this(value)
 {
     _döviz = currency;
 }