<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.labrps.com/index.php?action=history&amp;feed=atom&amp;title=Units</id>
	<title>Units - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.labrps.com/index.php?action=history&amp;feed=atom&amp;title=Units"/>
	<link rel="alternate" type="text/html" href="https://wiki.labrps.com/index.php?title=Units&amp;action=history"/>
	<updated>2026-05-07T18:08:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>https://wiki.labrps.com/index.php?title=Units&amp;diff=2158&amp;oldid=prev</id>
		<title>LabRPS: Created page with &quot;{{TOCright}}  Some reading about units: *[http://en.wikipedia.org/wiki/Metrology Metrology] *[http://en.wikipedia.org/wiki/International_System_of_Units SI system] *[http://en.wikipedia.org/wiki/Imperial_units Imperial units] *[http://en.wikipedia.org/wiki/SI_derived_unit SI derived units] *[http://en.wikipedia.org/wiki/Degree_%28angle%29 angle units] *[https://github.com/3drepo/occt/blob/master/src/UnitsAPI/Units.dat unit implemented in OCC]  == Examples ==   {{Code|cod...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.labrps.com/index.php?title=Units&amp;diff=2158&amp;oldid=prev"/>
		<updated>2024-10-29T20:48:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{TOCright}}  Some reading about units: *[http://en.wikipedia.org/wiki/Metrology Metrology] *[http://en.wikipedia.org/wiki/International_System_of_Units SI system] *[http://en.wikipedia.org/wiki/Imperial_units Imperial units] *[http://en.wikipedia.org/wiki/SI_derived_unit SI derived units] *[http://en.wikipedia.org/wiki/Degree_%28angle%29 angle units] *[https://github.com/3drepo/occt/blob/master/src/UnitsAPI/Units.dat unit implemented in OCC]  == Examples ==   {{Code|cod...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{TOCright}}&lt;br /&gt;
&lt;br /&gt;
Some reading about units:&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Metrology Metrology]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/International_System_of_Units SI system]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Imperial_units Imperial units]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/SI_derived_unit SI derived units]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Degree_%28angle%29 angle units]&lt;br /&gt;
*[https://github.com/3drepo/occt/blob/master/src/UnitsAPI/Units.dat unit implemented in OCC]&lt;br /&gt;
&lt;br /&gt;
== Examples == &lt;br /&gt;
&lt;br /&gt;
{{Code|code=&lt;br /&gt;
# -- some examples of the LabRPS unit translation system --&lt;br /&gt;
# make a shortcut for the examples&lt;br /&gt;
pq = LabRPS.Units.parseQuantity&lt;br /&gt;
&lt;br /&gt;
# 10 meters in internal numbers&lt;br /&gt;
pq(&amp;#039;10 m&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
# doing math&lt;br /&gt;
pq(&amp;#039;3/8 in&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
# combined stuff&lt;br /&gt;
pq(&amp;#039;100 km/h&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
# transfer to other units&lt;br /&gt;
pq(&amp;#039;100 km/h&amp;#039;)/tu(&amp;#039;m/s&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
# derived units (Ohm)&lt;br /&gt;
pq(&amp;#039;m^2*kg*s^-3*A^-2&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
# or&lt;br /&gt;
pq(&amp;#039;(m^2*kg)/(A^2*s^3)&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
# angles &lt;br /&gt;
pq(&amp;#039;2*pi rad&amp;#039;) # full circle&lt;br /&gt;
&lt;br /&gt;
# as gon&lt;br /&gt;
pq(&amp;#039;2*pi rad&amp;#039;) / tu(&amp;#039;gon&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
# more imperial&lt;br /&gt;
tu(&amp;#039;1ft (3+7/16)in&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
# or &lt;br /&gt;
pq(&amp;#039;1\&amp;#039; (3+7/16)&amp;quot;&amp;#039;) # the &amp;#039; we have to escape because of python&lt;br /&gt;
&lt;br /&gt;
# trigonometry&lt;br /&gt;
pq(&amp;#039;sin(pi)&amp;#039;)&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Supported units == &lt;br /&gt;
&lt;br /&gt;
A complete list of all supported units can be [[Expressions#Units |found here]].&lt;br /&gt;
&lt;br /&gt;
== See Also == &lt;br /&gt;
&lt;br /&gt;
* The [[Expressions#Units|Expressions]] page for a list of all known units.&lt;br /&gt;
* The documentation of [[Quantity|Quantity]].&lt;br /&gt;
* The [[Std_UnitsCalculator|Std UnitsCalculator]] tool.&lt;br /&gt;
&lt;br /&gt;
{{Powerdocnavi}}&lt;/div&gt;</summary>
		<author><name>LabRPS</name></author>
	</entry>
</feed>