Hello
First of all you're mixing types.
aa is a float
but you're comparison is against an integer
and you're adding 0.01 which is a double (on a pc at least IIRC)
You get what you want if you change your float to a double (increased accuracy) and your comparison to 1.0.
Hope that helps
STeADi