C#: Natural Log needed with decimal values for financial purpose

54 Views Asked by At

Is there a way to compute a natural log using decimal values in C#? I need something like

decimal dec = Math.Log(decimalInput);`

The problem is that Math.Log(x) only works with a double type as input and another double as output.

0

There are 0 best solutions below