Ejemplo n.º 1
0
 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);
         }
     }
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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;
 }