Difference between revisions of "ZCubes/Unit Conversions in ZCubes"
(→Code) |
|||
Line 37: | Line 37: | ||
− | |||
<br/> | <br/> | ||
− | © Copyright 1996- | + | *[[Z3 | Z3 home]] |
+ | *[[Z^3 Language Documentation]] | ||
+ | *[[ZCubes_Videos | ZCubes Videos and Tutorials]] | ||
+ | *[[Main_Page | About ZCubes ]] | ||
+ | <br/> | ||
+ | <br/> | ||
+ | © 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
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.