US/Imperial units and Units.xml

US/Imperial units and Units.xml - Сообщения

#1 Опубликовано: 01.09.2012 09:08:12
Edward Ulle

Edward Ulle

20 сообщений из 182 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Davide Carpi 02.01.2013 12:23:00
#2 Опубликовано: 03.09.2012 22:37:48
Edward Ulle

Edward Ulle

20 сообщений из 182 понравились пользователям.

Группа: 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
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений