Price: How many units of buying it takes to get 1 unit of selling. A number representing the decimal form of price_r.
According to the Stellar guides, the price of an offer should be the amount of buying units that can buy one selling unit, so if selling one XLM for 0.45 USD then the price is 0.45 but if selling one USD for XLM then the price would be 2.22 since you need 2.22 XLMs to buy one USD so the question is, should I do the conversion on the client so both offers reflect a similar price on the blockchain? or let the server do the conversion and get dissimilar prices on bids and asks?
Right now if I buy one USD with XLM it stores 0.45 but if I sell one USD for XLM at the same 0.45 it stores 2.22 so when I show the prices on the exchange they're different. So the question again is, should I convert the price on the client when showing the prices or should I convert before saving the operation on the server?