I need to format a double value to string in such a way that it has a sign in front ("+" whether it's positive, "-" whether it's negative) and has no trailing zeros. For example:
Input: 1.5
Output: "+1.5"
Input: 1.0
Output: "+1"
Input: -123.123321
Output: "-123.123321"