Use Ogre::Real instead of float where appropriate.
Type Ogre::Real may be not the same as float.