Report question

Question: How do I format a double to a string and only show decimal digits when necessary?