Numbers not recognised

The issue is Roblox not recognizing numbers in a script are equal
I just need help seeing why the issue is happening and if its just me.
3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Tried looking for it, but found nothing useful.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

-- This is an example Lua code block

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

1 Like

Can you explain what you mean?

well are those numbers actually equal?

so uhh, guessing your asking how to do print(1+1)? this is why they should revert back to making the devforum a bit more exclusive, this is just rubbish!

1 Like

Could you give a snippet of the code you’re referring to?

I believe roblox studio is having errors with identification, it may be the scripts tho.

Like others have said, you need to provide us some of your code. By the way, doing something like this won’t work because of floating point errors:

if 0.1 + 0.2 == 0.3 then
    print("0.1 + 0.2 is 0.3") --wont print because computers are bad at decimals/floats
end
1 Like

Thank you, ill try rounding then.

1 Like

The solution was a diffrent function(len()).

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.