[Solved] Why can’t I pass a int to a float in the same statement? [closed]
You can’t assign a float value to an int variable because some of the information will be lost. For the same reason, you can’t pass a float value to a method whose argument is declared as an int. (your question is rather unclear due to the incorrect use of terminology, but I think you are … Read more