I am using this code to round my time(float) to two decimals. I then show it using a GUI label.
dynamicContent = player.thisleveltime;
dynamicContent = Mathf.Round(dynamicContent * 100f) / 100f;
However, the problem with it is that when the float equals something point zero (ex: 9.0) unity rounds it to 9 with out the decimal point and then immediately adds it back in when it changes to 9.1. What ends up happening is that the decimal point and the digits behind it flash every second. Is there any way to stop this?