public void TestRegexApproximation() { Assert.AreEqual("0.13", Float.FloatRoundDecimalUp(0.129999995231628f).Result); Assert.AreEqual("0.015", Float.FloatRoundDecimalUp(0.014999999664723f).Result); Assert.AreEqual("3.6", Float.FloatRoundDecimalUp(3.59999990463257f).Result); Assert.AreEqual("0.9", Float.FloatRoundDecimalUp(0.899999976158142f).Result); Assert.AreEqual("0.072", Float.FloatRoundDecimalUp(0.0719999969005585f).Result); Assert.AreEqual("-0.072", Float.FloatRoundDecimalUp(-0.0719999969005585f).Result); }