I have an object with a method that should take a float as a parameter, but the value in the object is not correct. Passing an int or dou开发者_如何学JAVAble fixes the problem, but why doesn't float work?
Because you haven't provided a prototype for the method in the scope of the caller.
精彩评论