Make it possible to use float instead of double.