Include stdbool.
Only use float.

This change does not change precision or runtime with current
optimisation settings, but this potentially avoids conversions.