If I wanted to make the above statement evaluate as a double for the most accuracy where the variables are ints, what's the best way to do that? I would put (double) in front of every variable to be safe, but that seems repetitive.Code:double x = (WIDTH - 2 * MARGIN) / (MAX - 1) * i;