[c2506] Remove a compile warning and better test with float. (z2471)