LabVIEW Wiki Home
Menu
Navigation

. Home
. Contents
. Recent changes
. Random page
. Help
. Donations

Toolbox

. What links here
. Related changes
. Upload file
. Special pages
. Printable version
. Permanent link










> Rounding

LabVIEW has several rounding routines. They are part of the numeric palette.

The following functions are available:

Contents

Round to nearest

Image:Roundfun.png
This routine rounds the (floating point) input to the nearest integer. It follows IEEE854 standards for rounding the number. The IEEE standard states that if a number is exactly in between two integers (y.50) the output will be the nearest integer with an even least significant bit. This means that the number will be rounded to the nearest even integer. This approach is known under various names (banker's rounding, roundTiesToEven) and removes rounding errors in large statistical data-sets.

Round up

Image:Roundup.png
This routine rounds the (floating point) input to the next bigger integer. It follows IEEE754 standards for 'Round towards' + <math>\infty</math>.

Round down

Image:Rounddn.png
This routine rounds the (floating point) input to the next smaller integer. It follows IEEE754 standards for 'Round towards' - <math>Infinity</math>'.

External links


Content is available under Creative Commons Attribution License 3.0  About LabVIEW Wiki  Disclaimers  LabVIEW™ is a Trademark of National Instruments Corp.
Creative Commons Attribution License 3.0
IpbWikiPowered by MediaWiki
Powered by WebRing.