public void RoundSmallValue() { double result = UnitHandler.Round(1.23456789012345E-16); Assert.AreEqual(1.2346E-16, result); }
public void RoundNormalValue() { double result = UnitHandler.Round(3.141592653589793); Assert.AreEqual(3.1416, result); }
public void RoundZero() { double result = UnitHandler.Round(0.0); Assert.AreEqual(0, result); }
public void RoundNinesValue() { double result = UnitHandler.Round(999999999999.9998); Assert.AreEqual(1000000000000.0, result); }
public void RoundNegativeValue() { double result = UnitHandler.Round(-3.141592653589793); Assert.AreEqual(-3.1416, result); }
public void RoundBigValue() { double result = UnitHandler.Round(1234567890123456.0); Assert.AreEqual(1234600000000000.0, result); }