I'm trying to format a float to a number output that has at least one decimal.
If I'm doing number_format(4.76,1) it would return 4.7 - but that's not what I'm looking for.
float formated
6 --> 6.0
4.76 --> 4.76
6.2 --> 6.2
It's about browser version numbers and all I actually want to do is to add a '0' after the decimal point, if there is no decimal value.
Should I rather try it with sprintf()?
Thanks
phil