<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic round the numbers in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/round-the-numbers/m-p/4253687#M1237886</link>
    <description>&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;i have integer number which is variable 0.869231 and i want to round it nearest number after two decimal points such as 0.869231 should be 0.87 if it is 0.986858&amp;nbsp; the it should be 0.99.. how can i do it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 13:36:55 GMT</pubDate>
    <dc:creator>newmemeber123</dc:creator>
    <dc:date>2022-09-06T13:36:55Z</dc:date>
    <item>
      <title>round the numbers</title>
      <link>https://ni.lithium.com/t5/LabVIEW/round-the-numbers/m-p/4253687#M1237886</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;i have integer number which is variable 0.869231 and i want to round it nearest number after two decimal points such as 0.869231 should be 0.87 if it is 0.986858&amp;nbsp; the it should be 0.99.. how can i do it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 13:36:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/round-the-numbers/m-p/4253687#M1237886</guid>
      <dc:creator>newmemeber123</dc:creator>
      <dc:date>2022-09-06T13:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: round the numbers</title>
      <link>https://ni.lithium.com/t5/LabVIEW/round-the-numbers/m-p/4253696#M1237887</link>
      <description>&lt;P&gt;Hi new,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/702200"&gt;@newmemeber123&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;i have &lt;EM&gt;&lt;STRONG&gt;integer&lt;/STRONG&gt;&lt;/EM&gt; number which is variable 0.869231 and i want to round it nearest number after two decimal points such as 0.869231 should be 0.87 if it is 0.986858&amp;nbsp; the it should be 0.99.. how can i do it?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So you have &lt;STRONG&gt;&lt;U&gt;float&lt;/U&gt;&lt;/STRONG&gt; numbers like 0.8692? And you want to round them to 2 significant digits?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want to round them just for display purposes (see item 1) or do you want to use the rounded values later on for other calculations (see item 2)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Set the display format to %.2f of your numeric indicators…&lt;/LI&gt;
&lt;LI&gt;Multiply by 100, round to nearest integer, divide by 100. Keep in mind there will be rounding issues for the "divide by 100" operation as there are rounding issues for nearly all floting point operations…&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 06 Sep 2022 13:46:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/round-the-numbers/m-p/4253696#M1237887</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2022-09-06T13:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: round the numbers</title>
      <link>https://ni.lithium.com/t5/LabVIEW/round-the-numbers/m-p/4253697#M1237888</link>
      <description>&lt;P&gt;Multiply by 100, round to nearest integer, divide by 100.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.ni.com/ni/attachments/ni/170/1237888/1/Example_VI.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 13:49:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/round-the-numbers/m-p/4253697#M1237888</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2022-09-06T13:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: round the numbers</title>
      <link>https://ni.lithium.com/t5/LabVIEW/round-the-numbers/m-p/4253699#M1237890</link>
      <description>&lt;P&gt;First, you have a floating point number.&amp;nbsp; Integers are whole numbers 0, 1, 2, 3...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Multiply by 100, (or 10^nth where n is the number of places after the decimal point) round then divide by 100 (or 10^nth.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: I guess I type slow&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 13:52:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/round-the-numbers/m-p/4253699#M1237890</guid>
      <dc:creator>JÞB</dc:creator>
      <dc:date>2022-09-06T13:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: round the numbers</title>
      <link>https://ni.lithium.com/t5/LabVIEW/round-the-numbers/m-p/4253749#M1237905</link>
      <description>&lt;P&gt;Just wanted to add that if you just wanted to compare two numbers (like a test result to a requirement specified to two decimal places), you can do the multiplication,as in the previous posts, for both the result and the requirement, round each to the nearest integer and then do your comparison.&amp;nbsp; This will avoid floating point issues.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 16:58:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/round-the-numbers/m-p/4253749#M1237905</guid>
      <dc:creator>billko</dc:creator>
      <dc:date>2022-09-06T16:58:38Z</dc:date>
    </item>
  </channel>
</rss>

