❔ Please Help Me
Hey I'm trying to make a calculator I got all the operations working just fine but when I'm trying to divide 2 numbers that I know will be a decimal but it's automatically rounding down to the nearest whole number. How can I fix this.
3 Replies
int / int is going to give an int
if you dont want an int result, one of the numbers must be float or double
oops sorry i sent a wrong pic but i figured it out thanks though 😄
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.