simlogo1

 

 

 

SimQuest 6.4 help

 

 

Rounded

 

When applied to a number or an array of numbers, Rounded produces the integer nearest to the number or an array each element of which is the integer nearest to the corresponding element of the input array, respectively.
It has two variables: in and out.

 

Structure (for scalars):

       in becomes (in + 0.5) truncated

 

Example:

       2.5 becomes 3

       -5.1 becomes -5

       (2.5, -5.1) becomes (3, -5)

 

 

 

Related topics:

 

 

 

Copyright University of Twente 2011