https://wiki.zcubes.com/index.php?title=Manuals/calci/UNITS&feed=atom&action=historyManuals/calci/UNITS - Revision history2024-03-28T11:42:56ZRevision history for this page on the wikiMediaWiki 1.35.2https://wiki.zcubes.com/index.php?title=Manuals/calci/UNITS&diff=212951&oldid=prevDevika: Created page with "<div style="font-size:30px">'''UNITS(String)'''</div><br/> *<math>String</math> is any Unit name with Value. ==Description== *This function converts the string to a number wi..."2020-02-20T06:43:16Z<p>Created page with "<div style="font-size:30px">'''UNITS(String)'''</div><br/> *<math>String</math> is any Unit name with Value. ==Description== *This function converts the string to a number wi..."</p>
<p><b>New page</b></p><div><div style="font-size:30px">'''UNITS(String)'''</div><br/><br />
*<math>String</math> is any Unit name with Value.<br />
<br />
==Description==<br />
*This function converts the string to a number with units specified.<br />
*If a variable needs to be specified in specific units, simply use the <> operator. Such as: a<>(m/sec).<br />
*To convert the current value of a variable to a different unit, simply use the <> operator: a<>cm;<br />
*Any multi unit indication should be in () to avoid confusion with normal code that may mean something else. For 1 meter/second, 1(m/s) or 1<>(m/s) should be used<br />
*The following list is basic conversion Units:<br />
MassUnits:g,sg,lbm,u,ozm,<br />
<br />
DistanceUnits:m,mi,Nmi,in,ft,yd,ang,Pica,<br />
<br />
TimeUnits:yr,day,hr,mn,sec,year,s,min,hour,<br />
<br />
PressureUnits:Pa,atm,mmHg,<br />
<br />
ForceUnits:N,dyn,lbf,<br />
<br />
EnergyUnits:J,e,c,cal,eV,HPh,Wh,flb,BTU,<br />
<br />
PowerUnits:HP,W,<br />
<br />
MagnetismUnits:T,ga,<br />
<br />
LiquidUnits:tsp,tbs,oz,cup,pt,qt,gal,l,<br />
<br />
Prefixes:Y,Z,E,P,T,G,M,k,h,e,d,c,m,u,n,p,FValue,a,z,y,<br />
<br />
Others:rad,deg,F,C,K,dollar,euro,cent,rupee<br />
*Using Units function we can do with arithmetic Operations also.<br />
*For Example: UNITS("1km")<+>UNITS("2cm")<br />
<br />
==Examples==<br />
# UNITS("5km") = 5km<br />
# UNITS("2m")<+>UNITS("8m") = 10m<br />
# UNITS("6kg")<+>UNITS("5kg") = 11kg<br />
<br />
==See Also==<br />
*[[Manuals/calci/TOUNITS | TOUNITS ]]<br />
*[[Manuals/calci/UNITSOF| UNITSOF ]]<br />
*[[Manuals/calci/CONVERT | CONVERT ]]<br />
<br />
==References==<br />
*[http://en.wikipedia.org/wiki/Conversion_of_units Convert Units]<br />
<br />
<br />
<br />
<br />
*[[Z_API_Functions | List of Main Z Functions]]<br />
<br />
*[[ Z3 | Z3 home ]]</div>Devika