I am getting the above error when I use
double x = log10(100);
I have used it in other class, in the same project and it does not show this error.
How do I fix it?
Many thanks
Chintan
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The error usually indicates that there is more than one overload for the function
log10and that none of them is better than the others for that particular call. For example, the overloads could takefloatanddouble:100is anintthat can be converted to either and the conversions are equivalent, so the compiler cannot determine what the best option is.You can force the conversion to one of the overloads explicitly: