consider I have this value ..

2.4

how do I format this using String.Format or any other way in my aspx page so it prints 2.4 but when the value is 2.0 it only prints 2 ??