Better resolution, using float instead of int