❔ 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
phaseshift
phaseshift2y ago
int / int is going to give an int if you dont want an int result, one of the numbers must be float or double
cunkycakes6969
cunkycakes6969OP2y ago
oops sorry i sent a wrong pic but i figured it out thanks though 😄
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server