My program is dividing the number of hits by the number of "at bats," and I'm multiplying it by 1.0 so that it ends up as a double.
But it always gives me the first "zero" (as in "0.427"), whereas a baseball percentages doesn't include that first digit.
Casting it as a float gives me the same result.
I'm sure this is easy, but how do I get rid of that first zero? (I'm already "setprecision"-ing it to (3) to get the right percentage.)