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