How to printf real digit of float in printf : <p>for instance:</p>

<pre><code>#include &lt;stdio.h&gt;

int main(int argc, char **argv) {
    my_printf("%f\n", 1.233239208938208);
    my_printf("%f\n", 1.23);
    return (0);
};
</code></pre>

<p>I hope output is </p>

<pre><code>1.233239208938208
1.23
</code></pre>

<p>How should I do?</p>
