C++ signed char to double
<p>All,</p>

<p>New to C++ and am having a small issue converting a signed char to a double. Initial idea was to convert the signed char to a const char* and use atof to return the double.</p>

<pre><code>signed char x = '100';
const char * cChar = x;
std::cout &lt;&lt; atof(cChar);
</code></pre>

<p>Ideas?</p>
