Nearest Integer: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
<!-- imported from file: module_95.html--> | <!-- imported from file: module_95.html--> | ||
[[Category: | [[Category:SRound| ]] | ||
Revision as of 01:40, 18 May 2011
Node Description & Purpose:
The Nearest integer node takes the Input value and outputs the nearest integer, or whole number. It rounds decimal values less than .5 downward and decimal values of .5 and greater upward. For example:
An input of 2.2 will become 2.0
An input of 2.5 will become 3.0
An input of 2.9 will become 3.0
An input of 5.0 will become 5.0
Despite it not being obvious from the node name, the Nearest integer node is essentially a scalar node.
Due to way floating point numbers are represented, the scalar output may not always be an exact integer.
Node Type: Function
Settings:
This node has no other settings apart from the Input node.
