Difference between revisions of "Unit Operators"

From ZCubes Wiki
Jump to navigation Jump to search
Line 30: Line 30:
 
==See Also==
 
==See Also==
  
[Units| How to declare and use unit aware variables]
+
[[Units|How to declare and use unit aware variables]]

Revision as of 07:47, 14 June 2016

In z^3, operations can be done in "Unit Unaware" or "Unit Aware" ways. This is to efficient with calculations as the users desire.

The normal operators like +, -, *, -, ^, <, >, <=, ==, >=, !=, etc. are enclosed in two angle brackets to get the unit versions.

Hence the corresponding unit operators are:

<+> - Unit aware addition

<-> - Unit aware subtraction

<*> - Unit aware multiplication

<-> - Unit aware division

<^> - Unit aware power

<<> - Unit aware less than

<>> - Unit aware greater than

<<=>- Unit aware less than or equal to

<==>- Unit aware equal to

<>=>- Unit aware greater than or equal to.

<!=>- Unit aware not equal to.


See Also

How to declare and use unit aware variables