Here a program used for convert some units, using switch case an functions:
The main code: https://github.com/hrglez/TC1017/blob/master/Units
Thank you. Have a good day.
Units by hrglez is licensed under a Creative Commons Attribution 4.0 International License.