<?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 to nearest 0.5 in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Round-to-nearest-0-5/m-p/75587#M35953</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering if there is a way to use a formula to round numbers to the nearest 0.5 .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 24 Sep 2018 17:54:26 GMT</pubDate>
    <dc:creator>pcannonsamsung</dc:creator>
    <dc:date>2018-09-24T17:54:26Z</dc:date>
    <item>
      <title>Round to nearest 0.5</title>
      <link>https://community.jmp.com/t5/Discussions/Round-to-nearest-0-5/m-p/75587#M35953</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering if there is a way to use a formula to round numbers to the nearest 0.5 .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 17:54:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Round-to-nearest-0-5/m-p/75587#M35953</guid>
      <dc:creator>pcannonsamsung</dc:creator>
      <dc:date>2018-09-24T17:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Round to nearest 0.5</title>
      <link>https://community.jmp.com/t5/Discussions/Round-to-nearest-0-5/m-p/75594#M35958</link>
      <description>&lt;P&gt;You can use this for a column formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Round( :Data * 2 ) / 2&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or you could make your own function in a script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nearest half = Function( { x }, Round( x * 2 ) / 2 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Sep 2018 18:33:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Round-to-nearest-0-5/m-p/75594#M35958</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2018-09-24T18:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Round to nearest 0.5</title>
      <link>https://community.jmp.com/t5/Discussions/Round-to-nearest-0-5/m-p/75595#M35959</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x = [122.34, 10.2, 33.6, 45.75];

show( round( x/0.5,0 )*0.5 );

/*:
Round(x / 0.5, 0) * 0.5 = [122.5, 10, 33.5, 46];&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;oops, Mark beat me to it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 18:40:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Round-to-nearest-0-5/m-p/75595#M35959</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-09-24T18:40:50Z</dc:date>
    </item>
  </channel>
</rss>

