consolidate price rounding logic to one function and ensure it is applied uniformly