Name: round - Round double to the nearest integer

Synopsis:

double round -&gt; double 
integer round -&gt; double


Examples:

1.4 round  --&gt; 1.0 
1.5 round  --&gt; 2.0 
2   round  --&gt; 2.0


Description:

Alternatives: Function round_d (undocumented) 
-&gt; behaviour and synopsis are the same.


Remarks:

round_d is currently defined in SLI, 
could be implemented in C++ for efficiency. 
On 130610 it was decided that round applied to an integer 
should be the identity function. 
Update: In a later discussion, it was decided to make round 
return a double in this case as well.


Author:

introduced non-trie-variant round_d, Ruediger Kupper.


SeeAlso:

iround
floor
ceil
cvi

Source:

/var/www/debian/nest/nest-simulator-2.20.0/lib/sli/ps-lib.sli
