kOS.Safe.Encapsulation.ScalarValue.GetDoubleValue C# (CSharp) 메소드

GetDoubleValue() 공개 메소드

public GetDoubleValue ( ) : double
리턴 double
        public double GetDoubleValue()
        {
            return Convert.ToDouble(Value);
        }

Usage Example

예제 #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()));
 }
All Usage Examples Of kOS.Safe.Encapsulation.ScalarValue::GetDoubleValue