using float instead of int