示例#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));
 }