Own Big Float in C++
<p>I want to write my own variable "type" as a homework in C++. It should be an arbitrarily long float. I was thinking of structure like...</p>

<h2>Code:</h2>

<pre><code>class bigFloat
{
public:
    bigFloat(arguments);
    ~bigFloat();

private:
    std::vector&lt;char&gt; before; // numbers before decimal point
    std::vector&lt;char&gt; after; // numbers after decimal point
    int pos; // position of decimal point
};
</code></pre>

<p>Where if i have number like: 3.1415 
Before = '3'; after = '1415'; pos = 1;
If that makes sense to you... BUT assignment wants me to save some memory, which I don't because for every number I allocate about it is about 1 byte, which is too much I guess.</p>

<h2>Question:</h2>

<p>How would you represent those arbitrarily long numbers? 
(Sorry for my bad english, I hope the post makes sense)</p>
