Round a number to two decimal places: HOW?
-
@Deeeds For 2 decimal places:
Multiply your value by 100, then round to integer, then divide by 100For 3 decimal places:
Multiply your value by 1000, then round to integer, then divide by 1000And so on.
-
@Aidan-Oxley I was afraid you were going to say this.
I was hoping you'd say there was a rounding behaviour somewhere odd that I'd overlooked.
-
@Deeeds Iโll go have a look myself, but Iโm pretty sure there isnโt any options for that. Itโs only 2 extra behaviours though.
-
@Aidan-Oxley
3
-
@Deeeds Round on its own would be 1, round with the multiply and divide would be 3. So thatโs two extra behaviours.
-
@Aidan-Oxley Round should be part of a label's functionality so it's possible to work in accuracy and present with less.
-
@Deeeds Not worth the effort, at least not in my opinion. Changing Round Number behaviour just to be able to round with custom decimals with 2 behaviours less? Not a priority. Maybe they could add it one day.
-
@Aidan-Oxley You keep talking about priority. I don't.
I'm talking about ideals of operation and abstraction. When they do it and if they do it is not really any of my business. My commentary is just the opinion of an arsehole.
-
@Aidan-Oxley While I've got you thinking about ideals rather than prioritising:
Labels should also have tracking, and this should be animatable.
-
@Deeeds ๐ ok ๐. Yeah maybe one day
-
@Aidan-Oxley this is tracking:
-
@Aidan-Oxley Sorry. Spelt your name wrong... DOH!
-
@Deeeds Lol everyone spells my name like that. Looks interesting, but looks like it might be pretty hard for devs to code in.
-
@Aidan-Oxley No. Tracking is a value of Labels. It's the space between letters. Very common element of fonts. BMFonts even support kerning pairs.
-
@Deeeds Ohhh I see. So being able to change space between letters in a label. Not a bad idea.