Been there, done that for 30+ years. Science has nothing to do with it. Learning obscure rules and following them does.
If you were really a programmer, you'd know that .99 + .99 sometimes does "equal" 2.
Put this little line in your C program and smoke it:
printf("%3.0f\n", .99 + .99);