US/Imperial units and Units.xml

US/Imperial units and Units.xml - Messages

#1 Posted: 9/1/2012 9:08:12 AM
Edward Ulle

Edward Ulle

20 likes in 182 posts.

Group: Moderator

I was experimenting with Units.xml. I changed the default length unit to feet and adjusted the conversion factors accordingly. It seems to work. Some unit entries have base="true" to make them the base unit. When I got to volume the base was L (liter). Now each entry has a description="xxx" where xxx is a number from 293 to 541 with some gaps. I was wondering what the descriptor means. Can I add descriptors beyond 541 or even in the gaps. I was going to make ft^3 the base volume which would mean I would have to add new unit descriptor and push liter down the list. I'm hoping this would improve the US/Imperial units conversion.

Ed
1 users liked this post
Davide Carpi 1/2/2013 12:23:00 PM
#2 Posted: 9/3/2012 10:37:48 PM
Edward Ulle

Edward Ulle

20 likes in 182 posts.

Group: Moderator

I've been playing with a Units.xml file for US/Imperial units and discovered that sometimes Imperial (UK) units are slightly different. So let call this US Standard units.

I've translated Units.xml with default lb and ft. Although I'm uncertain how to translate some especially electrial units and some of the atomic mass units. If someone can help please let me know.

Below are two seperate runs one using the SI units file and one using the US units. It seems Andrey has done a good programming job since I can swap these at will.

US Units

SI Units

Ed
  • New Posts New Posts
  • No New Posts No New Posts