Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Prev Next


Round double to nearest or even integer valued double

double x, y, round();
y = round(x);


Returns the nearest integer to x as a double precision floating point result. If x ends in 0.5 exactly, the nearest even integer is chosen.


If x is greater than 1/(2*MACHEP), its closest machine representation is already an integer, so rounding does not change it.