Ejemplo n.º 1
0
 public static bool IsPositive(LSign sign)
 {
     return (sign == LSign.Positive);
 }
Ejemplo n.º 2
0
 public SLongIntD(LongIntBase FromLongNumber, LSign lSign, ConstructorMode mode)
     : this(FromLongNumber, mode)
 {
     sign = lSign;
 }
Ejemplo n.º 3
0
 public SLongIntD(LongIntDecimal From, LSign lSign, ConstructorMode mode)
     : base(From, mode)
 {
     sign = lSign;
 }
Ejemplo n.º 4
0
 public SLongIntD(uint MaxSize, LSign lSign)
     : this(MaxSize)
 {
     sign = lSign;
 }
Ejemplo n.º 5
0
 public SLongIntD(string s)
     : base(s)
 {
     if (s[0] == '-')
         sign = LSign.Negative;
 }
Ejemplo n.º 6
0
 public SLongIntD(SLongIntD From)
     : base((LongIntDecimal)From)
 {
     sign = From.sign;
 }
Ejemplo n.º 7
0
 public void ChangeSign()
 {
     if (sign == LSign.Negative)
         sign = LSign.Positive;
     else
         sign = LSign.Negative;
 }
Ejemplo n.º 8
0
 public SLongIntD(long number, uint MaxSize)
     : base((ulong)((number < 0) ? (-number) : number), MaxSize)
 {
     if (number < 0)
         sign = LSign.Negative;
 }