<?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 Re: Round Number Up or Down in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Round-Number-Up-or-Down/m-p/585887#M79157</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/45747"&gt;@Dennisbur&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You're on the right track with the Ceiling() and Floor() functions. Those will always return an integer, so what we can do is modify the input so that an integer return works for us. Specifically, adding a coefficient and a final rescaling so that we apply the ceiling function at the right place in the formula.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take your first example, 13.24. Imagine a simple case where you wanted to ceiling the first decimal place, so a result of 13.3. &amp;nbsp;You could do the following:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_0-1672580093773.png" style="width: 200px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48743iE765774CCA202CB1/image-size/small?v=v2&amp;amp;px=200" role="button" title="julian_0-1672580093773.png" alt="julian_0-1672580093773.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This will return 13.3, because Ceiling() is acting on the value 132.4, and the ceiling of that value is 133. Dividing that by 10 returns us to the base units.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another way to write this is using the reciprocal of the units place you want to ceiling, which is the 0.1 place:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_1-1672580240396.png" style="width: 200px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48744iCCFBE64049F6FADB/image-size/small?v=v2&amp;amp;px=200" role="button" title="julian_1-1672580240396.png" alt="julian_1-1672580240396.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, for your case, where you wish to Ceiling() or Floor() at the 0.05 the value in the &lt;SPAN class="lia-emoticons-autosuggestions"&gt;&lt;SPAN class="lia-emoticons-search-term"&gt;:Number column&lt;/SPAN&gt;&lt;/SPAN&gt;, you need:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_2-1672580282036.png" style="width: 200px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48745iB2C40EC9C3627BE7/image-size/small?v=v2&amp;amp;px=200" role="button" title="julian_2-1672580282036.png" alt="julian_2-1672580282036.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_3-1672580294575.png" style="width: 200px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48746i42EE30B5B815B275/image-size/small?v=v2&amp;amp;px=200" role="button" title="julian_3-1672580294575.png" alt="julian_3-1672580294575.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//Ceiling
Ceiling( 0.05 ^ (-1) * :Number ) / 0.05 ^ (-1)

//Floor
Floor( 0.05 ^ (-1) * :Number ) / 0.05 ^ (-1)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These formulas return the answers you are looking for.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_4-1672580335102.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48747i9547F4324D709006/image-size/medium?v=v2&amp;amp;px=400" role="button" title="julian_4-1672580335102.png" alt="julian_4-1672580335102.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've attached the table here with those formulas.&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 01 Jan 2023 13:42:07 GMT</pubDate>
    <dc:creator>jules</dc:creator>
    <dc:date>2023-01-01T13:42:07Z</dc:date>
    <item>
      <title>Round Number Up or Down</title>
      <link>https://community.jmp.com/t5/Discussions/Round-Number-Up-or-Down/m-p/585865#M79156</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have an option in Excel to round the number by significance number&lt;/P&gt;&lt;P&gt;for example, I have numbers as 13.24 or 0.57, and I would like to round it up or down to 0.05&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dennisbur_0-1672563450399.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48741i8F6ECB7EFC290573/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dennisbur_0-1672563450399.png" alt="Dennisbur_0-1672563450399.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Actually, I have found the option in FORMULA &amp;gt; NUMERIC&lt;/P&gt;&lt;P&gt;And I see the same function but I don't see the additional functions as&amp;nbsp;by significance number&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dennisbur_1-1672563723747.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48742iC4D60BE206C49894/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dennisbur_1-1672563723747.png" alt="Dennisbur_1-1672563723747.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you assist to me how I can&amp;nbsp;round the number by significance number 0.05&lt;/P&gt;&lt;P&gt;and receive the same result as I received in Excel?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:44:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Round-Number-Up-or-Down/m-p/585865#M79156</guid>
      <dc:creator>Dennisbur</dc:creator>
      <dc:date>2023-06-08T16:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Round Number Up or Down</title>
      <link>https://community.jmp.com/t5/Discussions/Round-Number-Up-or-Down/m-p/585887#M79157</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/45747"&gt;@Dennisbur&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You're on the right track with the Ceiling() and Floor() functions. Those will always return an integer, so what we can do is modify the input so that an integer return works for us. Specifically, adding a coefficient and a final rescaling so that we apply the ceiling function at the right place in the formula.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take your first example, 13.24. Imagine a simple case where you wanted to ceiling the first decimal place, so a result of 13.3. &amp;nbsp;You could do the following:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_0-1672580093773.png" style="width: 200px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48743iE765774CCA202CB1/image-size/small?v=v2&amp;amp;px=200" role="button" title="julian_0-1672580093773.png" alt="julian_0-1672580093773.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This will return 13.3, because Ceiling() is acting on the value 132.4, and the ceiling of that value is 133. Dividing that by 10 returns us to the base units.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another way to write this is using the reciprocal of the units place you want to ceiling, which is the 0.1 place:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_1-1672580240396.png" style="width: 200px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48744iCCFBE64049F6FADB/image-size/small?v=v2&amp;amp;px=200" role="button" title="julian_1-1672580240396.png" alt="julian_1-1672580240396.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, for your case, where you wish to Ceiling() or Floor() at the 0.05 the value in the &lt;SPAN class="lia-emoticons-autosuggestions"&gt;&lt;SPAN class="lia-emoticons-search-term"&gt;:Number column&lt;/SPAN&gt;&lt;/SPAN&gt;, you need:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_2-1672580282036.png" style="width: 200px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48745iB2C40EC9C3627BE7/image-size/small?v=v2&amp;amp;px=200" role="button" title="julian_2-1672580282036.png" alt="julian_2-1672580282036.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_3-1672580294575.png" style="width: 200px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48746i42EE30B5B815B275/image-size/small?v=v2&amp;amp;px=200" role="button" title="julian_3-1672580294575.png" alt="julian_3-1672580294575.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//Ceiling
Ceiling( 0.05 ^ (-1) * :Number ) / 0.05 ^ (-1)

//Floor
Floor( 0.05 ^ (-1) * :Number ) / 0.05 ^ (-1)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These formulas return the answers you are looking for.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_4-1672580335102.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48747i9547F4324D709006/image-size/medium?v=v2&amp;amp;px=400" role="button" title="julian_4-1672580335102.png" alt="julian_4-1672580335102.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've attached the table here with those formulas.&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jan 2023 13:42:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Round-Number-Up-or-Down/m-p/585887#M79157</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2023-01-01T13:42:07Z</dc:date>
    </item>
  </channel>
</rss>

