Discuss Scratch

thefoxyflamingfox
Scratcher
14 posts

Why Does It say "infinity"?

I'm making a project with a percentage variable found by doing (“yes” responses / total responses) X 100. It showed the answer as infinity. Why does this happen and how can I fix it?
The_Imaginarium
Scratcher
1000+ posts

Why Does It say "infinity"?

Make sure the total responses is not recorded as zero, because any number divided by zero is undefined, or infinity.
thefoxyflamingfox
Scratcher
14 posts

Why Does It say "infinity"?

They are both 1, so the answer should be 100, but it still says infinity.
helloworldbyeworld
Scratcher
1000+ posts

Why Does It say "infinity"?

If it still says infinity, can you post the link to the project?
thefoxyflamingfox
Scratcher
14 posts

Why Does It say "infinity"?

I just checked it again. For some reason, it's working now. Thank you for the Help!

Powered by DjangoBB