I'm trying to convert a float (which represents a small time period between 0.000
and 3.000
seconds) into a string in the format 00:000
, where all leading zeros remain.
Using (float).ToString("00.000").Replace(".",":")
works, but it feels like there's a "better" way.