Ejemplo n.º 1
0
 public void testUp()
 {
     for (int i = 0; i < testData.Length; i++)
     {
         int        digits     = testData[i].precision;
         UpRounding up         = new UpRounding(digits);
         double     calculated = up.Round(testData[i].x);
         double     expected   = testData[i].up;
         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(UpRounding 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(UpRounding obj) {
   return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }