Beispiel #1
0
 public static long GetAsLong(this NumericComponent self, int numericType)
 {
     if (self.IsFloat(numericType))
     {
         return(self.GetByKey(numericType) / 10000);
     }
     else
     {
         return(self.GetByKey(numericType));
     }
 }
Beispiel #2
0
 public static void Set(this NumericComponent self, int nt, long value, bool isRealValue = false)
 {
     if (!isRealValue && self.IsFloat(nt))
     {
         self[nt] = value * 10000;
     }
     else
     {
         self[nt] = value;
     }
 }
Beispiel #3
0
 public static int GetAsInt(this NumericComponent self, int numericType)
 {
     if (self.IsFloat(numericType))
     {
         return((int)self.GetByKey(numericType) / 10000);
     }
     else
     {
         return((int)self.GetByKey(numericType));
     }
 }