Here is my code. I have a problem with the decimals when it comes to "temp /= 100.0".
montant = 61;
for (int i=0 ; i<7 ; i++)
{
if (i != posCreancier)
{
temp = montant/7.0; (temp == 8.7142857142857135)
temp *= 100; (temp == 871.42857142857133)
temp += 0.5; (temp == 871.92857142857133)
temp = floor(temp); (temp == 871.00000000000000)
temp /= 100.0; (temp == 8.7100000000000009) Wtf with that "9" appearing ?!?
tabDettes[posCreancier][i] = temp;
}
}