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); } } }
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); }
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; }