how to represent these kind of probabilities in C++?
<p>I have found some probabilities whose sum doesn't give 1, note these probabilities don't have to give 1</p>

<p>So I have something like this</p>

<pre>
0.00112
0.12311
0.3933393
0.111010
0.0002
0.003
0.00000000004
</pre>

<p>etc.</p>

<p>Now I'm trying to use these probabilities in my application.</p>

<p>What I did is I found their normalized form, so I found the sum and then I get these probabilities</p>

<pre>
0.00177277097
0.194862351
0.622589724
0.175710094
0.000316566244
0.00474849366
6.33132488 × 10^(-11)
</pre>

<p>Their sum gives 1 as a result</p>

<p>Now I'm thinking of using an array of 1,000,000 places, where I will put for example for the first probability 0.00177277097*1,000,000 places that will have the value for the probability and do the same thing for the others</p>

<p>The thing is I can lose some points if I use this method, for example maybe in the end I will have 999,994 places filled and not 1,000,000..</p>

<p>Is there any other method that can be used in this case?</p>
