Mathematic Operations and Functions
Source: Positron8 Compiler User Manual, PDF page 78

Mathematic
Operations
and
Functions
The Positron8 compiler performs all mathematic operations in full hierarchal order. Which means that there is precedence to the operators. For example, multiplies and divides are performed before adds and subtracts. To ensure the operations are carried out in the correct order use parenthesis to group the operations: -
A = (( B - C ) * ( D + E )) / F
All math operations are signed or unsigned depending on the variable type used, and performed with 8-bit, 16-bit, 24-bit, or 32-bit or floating point precision, again, depending on the variable types and constant values used within the expression. The operators supported are: -
Subtopics
Standard operatorsPDF page 79Logical operatorsPDF page 79Positron8 functionsPDF page 79Trigonometry functionsPDF page 79Bitwise Reverse '@'PDF page 93Decimal Digit extract '?'PDF page 94AbsPDF page 95fAbsPDF page 96AcosPDF page 97AsinPDF page 98AtanPDF page 99CosPDF page 100DcdPDF page 101ExpPDF page 102fRoundPDF page 103ISinPDF page 104ICosPDF page 105ISqrPDF page 106LogPDF page 107Log10PDF page 108NcdPDF page 109PowPDF page 110SinPDF page 111SqrPDF page 112TanPDF page 113Div32PDF page 114