use long instead of int for price and pBase