Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在 C# 中使用十进制值计算自然对数?我需要类似的东西
decimal dec = Math.Log(decimalInput);`
问题是Math.Log(x)它只适用于双精度类型作为输入和另一个双精度类型作为输出。
Math.Log(x)