ZCubes/Unit Conversions in ZCubes

From ZCubes Wiki
Jump to: navigation, search

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'.


<< Learn ZCubes
© Copyright 1996-2020, ZCubes, Inc.