The following expression shows significant numerical differences in a program when I compile in x86 (32 bit) versus x64 (64 bit), when $a$ is small:
$$ \left( \dfrac{1}{a} - b \right) \left( 1- \exp(-a)\right)$$
Is there a way that I can refactor this expression so that it is more robust for small $a$? It is not completely clear to me that simply expanding the expression into four terms is the best solution.