GetIntValue() public méthode

public GetIntValue ( ) : int
Résultat int
Exemple #1
0
 public static ScalarValue Modulus(ScalarValue val1, ScalarValue val2)
 {
     if (val1.IsInt && val2.IsInt)
     {
         return(Create(val1.GetIntValue() % val2.GetIntValue()));
     }
     return(Create(val1.GetDoubleValue() % val2.GetDoubleValue()));
 }
Exemple #2
0
 public static ScalarValue Modulus(ScalarValue val1, ScalarValue val2)
 {
     if (val1.IsInt && val2.IsInt)
     {
         return Create(val1.GetIntValue() % val2.GetIntValue());
     }
     return Create(val1.GetDoubleValue() % val2.GetDoubleValue());
 }