public void Root() { const decimal expected = 100.0M; decimal actual = expected * expected * expected; actual = DecimalMath.Root(actual, 3); Assert.AreEqual <decimal>(expected, actual); }
private decimal CalculateFactor(CalculationData data) { return(DecimalMath.Root(data.TargetRemainingValue / data.AcquisitionValue, data.DepreciationRange)); }