public static long GetAsLong(this NumericComponent self, int numericType) { if (self.IsFloat(numericType)) { return(self.GetByKey(numericType) / 10000); } else { return(self.GetByKey(numericType)); } }
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; } }
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)); } }