Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to get rid of a number printing inf?

So i, cant really say made, but i guess, put togeather a little math equation, and basicly it uses division of a number, it prints what the number equils, but sometimes it shows inf, like a number too big for roblox to use i guess, how would i go around that

a = 10

for i = 0,1,0.1 do
	b = a/i
	print(b)
	wait()
end

2 comments

0

The script, we need the script.

0

a = 10 for i = 0,1,0.1 do b = a/i print(b) wait() end

1 answer

✓ Accepted answer

Dont divide by 0. ESPECIALLY 0/0.

This discussion is preserved as it was. New answers, comments, and votes are closed.