Rounding Behaviour has a bug, or division by 1000x does.
-
@Deeeds I'm guessing it's a floating point rounding error. You could get around this by looping through the digits and rounding using trim text at he nth digit after the decimal point, but would be nice if this wasn't needed.
@Jack8680 said in Rounding Behaviour has a bug, or division by 1000x does.:
@Deeeds I'm guessing it's a floating point rounding error. You could get around this by looping through the digits and rounding using trim text at he nth digit after the decimal point, but would be nice if this wasn't needed.
This is the case. Its a floating point issue. You should only be rounding your final calculated behaviour. You want to avoid rounding before your multiplies or divides.
-
@Jack8680 said in Rounding Behaviour has a bug, or division by 1000x does.:
@Deeeds I'm guessing it's a floating point rounding error. You could get around this by looping through the digits and rounding using trim text at he nth digit after the decimal point, but would be nice if this wasn't needed.
This is the case. Its a floating point issue. You should only be rounding your final calculated behaviour. You want to avoid rounding before your multiplies or divides.
-
@Jack8680 said in Rounding Behaviour has a bug, or division by 1000x does.:
@Deeeds I'm guessing it's a floating point rounding error. You could get around this by looping through the digits and rounding using trim text at he nth digit after the decimal point, but would be nice if this wasn't needed.
This is the case. Its a floating point issue. You should only be rounding your final calculated behaviour. You want to avoid rounding before your multiplies or divides.
@Hamed so then there is no way to round to a decimal?
-
Right now, unfortunately, is @Jack8680 way of doing it. I'll add number of decimal places to Round number behaviour.
@Hamed that would be great! Thanks
-
Right now, unfortunately, is @Jack8680 way of doing it. I'll add number of decimal places to Round number behaviour.
@Hamed Cheers. I was afraid you'd say that.
btw, if a label gets content that's longer and deeper than it was expecting and doesn't fit the text box region, and this value is getting updated a lot, it creates a bit of a slowdown each time it's trying to fit the text.
-
-
When updating a TTF Label, its very slow process because it destroys the label and re-creates it by turning the text into an image, then presenting it to the screen. Where as updating a BM Font label is fast because its not recreating the image.
-
No, you need to import it into the project for when sharing/exporting the project with the ttf font, it will work for users that don't have the font.
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