(inefficiently) fixed int/float buy/sell problem