How to limit decimal places? (or significant figures)
-
Hey all my problem today is displaying floats and their decimal places/sig figs
The problem is I divide my float values every once in a while for various things, but those values are also shown to the player, and sometimes it can get messy when some of the values can look like 0.0523000000001. When this happens it gets in the way of other values and is just plain ugly. What I was wondering is if there was a way to limit the amount of significant figures so it looks more like 0.0523?
-
-
exactly what i was looking for, thanks!