handle integer percentage
handle fractional dimension