Exemple #1
0
 public void testFloor()
 {
     for (int i = 0; i < testData.Length; i++)
     {
         int             digits     = testData[i].precision;
         FloorTruncation floor      = new FloorTruncation(digits);
         double          calculated = floor.Round(testData[i].x);
         double          expected   = testData[i].floor;
         if (!Utils.close(calculated, expected, 1))
         {
             QAssert.Fail("Original number: " + testData[i].x + "Expected: " + expected + "Calculated: " + calculated);
         }
     }
 }
Exemple #2
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FloorTruncation obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Exemple #3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FloorTruncation obj) {
   return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }