<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://labviewwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mads</id>
	<title>LabVIEW Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://labviewwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mads"/>
	<link rel="alternate" type="text/html" href="https://labviewwiki.org/wiki/Special:Contributions/Mads"/>
	<updated>2026-05-09T09:03:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=Rounding&amp;diff=3676</id>
		<title>Rounding</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Rounding&amp;diff=3676"/>
		<updated>2008-08-25T12:53:02Z</updated>

		<summary type="html">&lt;p&gt;Mads: /* [http://zone.ni.com/reference/en-XX/help/371361D-01/glang/round_to_nearest/  Round to neareast] */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[LabVIEW]] has several rounding routines.&lt;br /&gt;
They are part of the [[Block_Diagram_Images#Numeric|numeric palette]].&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following functions are available:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==[http://zone.ni.com/reference/en-XX/help/371361D-01/glang/round_to_nearest/  Round to nearest]==&lt;br /&gt;
[[Image:Roundfun.png]]&amp;lt;br /&amp;gt;&lt;br /&gt;
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.5&amp;lt;s&amp;gt;0&amp;lt;/s&amp;gt;) 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.&lt;br /&gt;
This approach is known under various names (banker&#039;s rounding, roundTiesToEven) and removes rounding errors in large statistical data-sets.&lt;br /&gt;
&lt;br /&gt;
==[http://zone.ni.com/reference/en-XX/help/371361D-01/glang/round_to_posinfinity/  Round up]==&lt;br /&gt;
[[Image:Roundup.png]]&amp;lt;br /&amp;gt;&lt;br /&gt;
This routine rounds the (floating point) input to the next bigger integer. It follows IEEE754 standards for &#039;Round towards&#039; + &amp;lt;math&amp;gt;Infinity&amp;lt;/math&amp;gt;&#039;.&lt;br /&gt;
&lt;br /&gt;
==[http://zone.ni.com/reference/en-XX/help/371361D-01/glang/round_to_neginfinity/  Round down]==&lt;br /&gt;
[[Image:Rounddn.png]]&amp;lt;br /&amp;gt;&lt;br /&gt;
This routine rounds the (floating point) input to the next smaller integer. It follows IEEE754 standards for &#039;Round towards&#039; - &amp;lt;math&amp;gt;Infinity&amp;lt;/math&amp;gt;&#039;.&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* [http://en.wikipedia.org/wiki/IEEE_754#Rounding_floating-point_numbers Wikipedia page on rounding floating point numbers]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/IEEE_754 Wikipedia page on IEEE 754]&lt;br /&gt;
* [http://grouper.ieee.org/groups/754/ IEEE pagon on standard 754]&lt;br /&gt;
* [http://standards.ieee.org/reading/ieee/std_public/description/busarch/854-1987_desc.html outline of standard 854]&lt;br /&gt;
&lt;br /&gt;
[[Category:Numeric]]&lt;/div&gt;</summary>
		<author><name>Mads</name></author>
	</entry>
</feed>