예제 #1
0
파일: T_Rounding.cs 프로젝트: igitur/qlnet
 public void testDown()
 {
     for (int i = 0; i < testData.Length; i++)
     {
         int          digits     = testData[i].precision;
         DownRounding down       = new DownRounding(digits);
         double       calculated = down.Round(testData[i].x);
         double       expected   = testData[i].down;
         if (!Utils.close(calculated, expected, 1))
         {
             QAssert.Fail("Original number: " + testData[i].x + "Expected: " + expected + "Calculated: " + calculated);
         }
     }
 }
예제 #2
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(DownRounding obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
예제 #3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(DownRounding obj) {
   return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }