KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'd like to dispaly only one decimal place. I've tried the following: string thevalue = "6.33"; thevalue = string.Format("{0:0.#}", thevalue); result: 6.33. But should be 6.3? Even 0.0 does not work. What am I doing wrong?
Tags (comma-separated)
Save Edits
Cancel