My team is developing a web application, where we have in the requirements to display the data in multiple unit which is set by the end user.
Where should we write down the unit conversion logic, on front-end side or back-end side.
What is the good approach of doing the data conversion?
- We should perform on the front end side
Can be performed on back end side:
- We can save multiple data unit in the Database
- We can apply conversion formula on API side.