예제 #1
0
        public void Root()
        {
            const decimal expected = 100.0M;
            decimal       actual   = expected * expected * expected;

            actual = DecimalMath.Root(actual, 3);
            Assert.AreEqual <decimal>(expected, actual);
        }
예제 #2
0
 private decimal CalculateFactor(CalculationData data)
 {
     return(DecimalMath.Root(data.TargetRemainingValue / data.AcquisitionValue, data.DepreciationRange));
 }