Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using OfficeOpenXml.FormulaParsing.ExpressionGraph;
|
---|
6 |
|
---|
7 | namespace OfficeOpenXml.FormulaParsing.Excel.Functions.Math
|
---|
8 | {
|
---|
9 | public class Ln : ExcelFunction
|
---|
10 | {
|
---|
11 | public override CompileResult Execute(IEnumerable<FunctionArgument> arguments, ParsingContext context)
|
---|
12 | {
|
---|
13 | ValidateArguments(arguments, 1);
|
---|
14 | var arg = ArgToDecimal(arguments, 0);
|
---|
15 | return CreateResult(System.Math.Log(arg, System.Math.E), DataType.Decimal);
|
---|
16 | }
|
---|
17 | }
|
---|
18 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.