Positron Compiler Documentation

FloatIng Point To Integer Rounding

Positron16 · Revision 1.1.3.5 · PDF page 35

Assigning a 32-bit or 64-bit floating point variable to an integer type will be truncated to the lowest value by default. For example:

MyFloat = 3.9
MyDword = MyFloat

The variable MyDword will hold the value of 3.

View original PDF page 35Open page in PDFOriginal PDF page 35