Convert between price and ticks.