### RTOI – Real to integer number conversion

Block SymbolLicensing group: STANDARD Function Description
The RTOI block converts the real number r to a signed integer number i. The resulting rounded value is defined by:

$\mathtt{\text{i}}:=\left\{\begin{array}{ccc}-2147483648\hfill & \mathrm{\text{for}}\hfill & \mathtt{\text{r}}\le -2147483648.0\hfill \\ \mathrm{\text{round}}\left(\mathtt{\text{r}}\right)\hfill & \mathrm{\text{for}}\hfill & -2147483648.0<\mathtt{\text{r}}\le 2147483647.0\phantom{\rule{0em}{0ex}},\hfill \\ 2147483647\hfill & \mathrm{\text{for}}\hfill & \mathtt{\text{r}}>2147483647.0\hfill \\ \hfill \end{array}\right\$

where $\mathrm{\text{round}}$(r) stands for rounding to the nearest integer number. The number of the form $n$+0.5 ($n$ is integer) is rounded to the integer number with the higher absolute value, i.e. $\mathrm{\text{round}}\left(1.5\right)=2$, $\mathrm{\text{round}}\left(-2.5\right)=-3$. Note that the numbers $-2147483648$ and $2147483647$ correspond with the lowest and the highest signed number representable in 32-bit format respectively (0x7FFFFFFF and 0x80000000 in hexadecimal form in the C language).

Input