Use fsqrt() to calculate float (rather than double) square root.