Difference between revisions of "ZCubes/Unit Conversions in ZCubes"

From ZCubes Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by 2 users not shown)
Line 9: Line 9:
  
 
==Code==
 
==Code==
1mi;
+
<br/>1mi              
1km;
+
<br/>--> displays 1 mi as output
  
a=2km
+
<br/>1km
a<>mi;
+
<br/>--> displays 1 km as output
  
a=1..10;
+
<br/>a=2km
b=a<>mi;
+
<br/>a<>mi
b<>km;
+
<br/>-->displays 1.2427423844746681mi as output
  
a=1..10;
 
b=a<>degC;
 
b<>deg F;
 
  
a=90deg;
+
Unit conversions on array of numbers :
SIN(a)
+
<br/>a=1..10;
 +
<br/>b=a<>mi
 +
<br/>b<>km
 +
<br/>--> displays the converted items of 1mi,2mi,......10mi into km
  
 +
<br/>a=1..10;
 +
<br/>b=a<>degC (type degC and 'Shift+Space' to get symbol)
 +
<br/>b<>degF
 +
<br/>--> displays the converted items of 1degC,2degC,......10degC into degF
  
<<[[Learn_ZCubes | Learn ZCubes ]]
+
<br/>a=90deg;
 +
<br/>SIN(a)
 +
<br/>-->First, degrees is converted to rad and then SIN(a) is performed to get an output '1'.
 +
 
 +
 
 +
 
 +
<br/>
 +
*[[Z3 | Z3 home]]
 +
*[[Z^3 Language Documentation]]
 +
*[[ZCubes_Videos | ZCubes Videos and Tutorials]]
 +
*[[Main_Page | About ZCubes ]]
 +
<br/>
 
<br/>
 
<br/>
&copy; Copyright 1996-2020, ZCubes, Inc.
+
&copy; Copyright 1996-2021, ZCubes, Inc.

Latest revision as of 01:26, 11 March 2021

Unit Conversions in ZCubes


ZCubes is a platform that is 'Units Aware'. You can provide the units for specific values, and ZCubes will compute and produce the result, based on the resultant units. This is a powerful feature for the user to save time and effort by not having to write the unit conversion algorithms. ZCubes takes care of this in the computation.

Video


Unit Conversions in ZCubes














Code


1mi
--> displays 1 mi as output


1km
--> displays 1 km as output


a=2km
a<>mi
-->displays 1.2427423844746681mi as output


Unit conversions on array of numbers :
a=1..10;
b=a<>mi
b<>km
--> displays the converted items of 1mi,2mi,......10mi into km


a=1..10;
b=a<>degC (type degC and 'Shift+Space' to get symbol)
b<>degF
--> displays the converted items of 1degC,2degC,......10degC into degF


a=90deg;
SIN(a)
-->First, degrees is converted to rad and then SIN(a) is performed to get an output '1'.





© Copyright 1996-2021, ZCubes, Inc.