<p>I need to store a double as a string.  I know I  can use <code>printf</code> if I wanted to display it, but I just want to store it in a string variable so that I can store it in a map later (as the <em>value</em>, not the <em>key</em>).</p>

Take a look at
```
sprintf()
```
and family.