The call is ambiguous between the following methods or properties
Hey, i'm very new to C# and im getting this error "The call is ambiguous between the following methods or properties"
5 Replies
this is the code
What's the full error message? You've just shown the first bit.
I'm guessing you probably wanted to do a floating-point division there? You're currently dividing an int by an int, which gives you an int. Calling
Ceiling
on an int doesn't make any sense
(int)Math.Ceiling((double)input.Sum() / input.Length)
oh yeah that was it!
thanks a lot