SyntaxFix
Write A Post
Hire A Developer
Questions
You are performing calculations on integers and assigning its result to float. So compiler is implicitly converting your integer result into float