Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
1.24/5 (3 votes)
See more:
Ln(x) value equals to which method C#



any one please help me...
Posted

1 solution

I think you need

C#
Math.Log(x);
 
Share this answer
 
Comments
Nelek 30-Aug-13 5:49am    
If I recall correctly my high school times... Log is in base 10, Ln is in base "e"
phil.o 30-Aug-13 5:54am    
In C#, Math.Log() is the natural logarithm function.
For decimal logarithm, there exist a Math.Log10() one :)
Nelek 30-Aug-13 6:04am    
Welcome to the "false friends" list :P
Would not be easier just to keep it with the same names? :doh: :laugh:
phil.o 30-Aug-13 6:05am    
Nah, that would be too simple! :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900