I am in search of a finest follow, or normal/accepted technique of dealing with each metric and imperial measurements in an app. I’ve an iOS app that’s at present simply within the US market, however am desirous to internationalize it for different markets. A part of this includes dealing with each metric and imperial measurements, and displaying the proper one based mostly on localization or desire overrides.
As this app is designed for individuals touring, it’s doubtless {that a} person might wish to swap between one system and the opposite relying on what nation they’re at present in, so I might want to handle each units of information.
Because the person may enter the measurements in both system, and wish to learn the equal within the different, I would like a way of sustaining them each. My first thought is to create all measurements (size, quantity, mass, temp, strain) as tuples and calculate the lacking half when the info is saved. However as that is my first time coping with two measurement techniques directly, I ponder if there’s already an ordinary method of dealing with such information sorts.