Sprite utils bug

found a bug with sprite utils, the "round (x) to (y) decimal places block acts as a string for some reason, fairly sure this didnt happen before as i have used it in previous projects. i tried to use while calculating delta time manually (without the extension) and i got an error about saying type string is not assignable to type number.

2 Likes

Can we look at your code to make sure this isn’t a bug within the extension.
For now, try using the “parse to number” block in the text section of the toolbox.

1 Like

Could you share your code please? This would help find the issue.

yeah, here is a replication of the bug

1 Like

This looks to be completely intentional behavior! The help text says it returns a string:


Just use “parse to number (“ ”)” to use it as a number:

In the advanced Text tab

2 Likes

oh, alright. thanks.

I think it’s because of the decimal point “.”

What does this even mean?

1 Like