Use float instead of constants