Visual Studio 2012 C# Form application using log(base 10) function -


i'm writing program in visual studio 2012 c# form application. want use log(base 10) in calculation after button clicked. saw code , wrote in program giving me error. getting wrong?

    public static decimal log10(         decimal value      ) 

you need implement function , not declare it:

public static decimal log10(decimal value) {     return math.log10((double)value); } 

well, can see there's such function built .net framework: math.log10. don't need reinvent wheel, use it.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -