Decimal Counting Bug
-
I don’t know how to explain it, but when I there’s a decimal that goes up, there’s a chance that there will be a digit at the very end that counts:

How do I fix this?
-
I don’t know how to explain it, but when I there’s a decimal that goes up, there’s a chance that there will be a digit at the very end that counts:

How do I fix this?
@the_true_odst This is impossible to fix, the issue is with floats which are known to do this. The only fix I’ve every thought of to this would be to make it so that the real value has it so at 1 it’s stored as 100 so at 0.01 its stored as 1 and will accurately go up as such
-
@the_true_odst This is impossible to fix, the issue is with floats which are known to do this. The only fix I’ve every thought of to this would be to make it so that the real value has it so at 1 it’s stored as 100 so at 0.01 its stored as 1 and will accurately go up as such
@tyller_ I think I understand what you said.
I added a money storage variable so it doesn’t glitch out:

-
@tyller_ I think I understand what you said.
I added a money storage variable so it doesn’t glitch out:

Another way is to scale it up by 100, round to integers (so get rid of the tiny noise value), then divide it by 100:

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login