rounded64
rounded64(): Integer64;
The rounded64 method of the Real primitive type returns a 64-bit integer containing the rounded value of the receiver.
The following examples show the use of the rounded64 method.
while count > 0 do tbl.rowHeight[count] := (tbl.height / tbl.rows).rounded64; count := count - 1; endwhile; write (6.4).Real.rounded64; // outputs 6 [0,1,2,3,4 are rounded down] write (6.5).Real.rounded64; // outputs 7 [5,6,7,8,9 are rounded up] write (-6.4).Real.rounded64; // outputs -6 [0,1,2,3,4 are rounded up] write (-6.5).Real.rounded64; // outputs -7 [5,6,7,8,9 are rounded down]