<?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 mod operator in shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mod-operator-in-shell/m-p/2679114#M52760</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have one more quick question:&lt;BR /&gt;&lt;BR /&gt;Suppose, I have to perform the following division:&lt;BR /&gt;&lt;BR /&gt;20/8 = 2.5&lt;BR /&gt;&lt;BR /&gt;What can I use in shell so only 2 is returned?&lt;BR /&gt;tmp=20/8&lt;BR /&gt;and then tmp==2&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
    <pubDate>Fri, 08 Mar 2002 18:49:54 GMT</pubDate>
    <dc:creator>andi_1</dc:creator>
    <dc:date>2002-03-08T18:49:54Z</dc:date>
    <item>
      <title>mod operator in shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mod-operator-in-shell/m-p/2679114#M52760</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have one more quick question:&lt;BR /&gt;&lt;BR /&gt;Suppose, I have to perform the following division:&lt;BR /&gt;&lt;BR /&gt;20/8 = 2.5&lt;BR /&gt;&lt;BR /&gt;What can I use in shell so only 2 is returned?&lt;BR /&gt;tmp=20/8&lt;BR /&gt;and then tmp==2&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Fri, 08 Mar 2002 18:49:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mod-operator-in-shell/m-p/2679114#M52760</guid>
      <dc:creator>andi_1</dc:creator>
      <dc:date>2002-03-08T18:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: mod operator in shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mod-operator-in-shell/m-p/2679115#M52761</link>
      <description>Use bc&lt;BR /&gt;&lt;BR /&gt;VAR=`echo "20/8" | bc`&lt;BR /&gt;echo $VAR&lt;BR /&gt;2&lt;BR /&gt;&lt;BR /&gt;Note that the ` are the backward tic marks.</description>
      <pubDate>Fri, 08 Mar 2002 18:53:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mod-operator-in-shell/m-p/2679115#M52761</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-03-08T18:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: mod operator in shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mod-operator-in-shell/m-p/2679116#M52762</link>
      <description>where A=2 and B=5&lt;BR /&gt;&lt;BR /&gt;this will return just 2:&lt;BR /&gt;(( C = $B / $A ))&lt;BR /&gt;&lt;BR /&gt;this wil return just the remainder, 1:&lt;BR /&gt;(( D = $B % $A ))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;mark</description>
      <pubDate>Fri, 08 Mar 2002 19:05:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mod-operator-in-shell/m-p/2679116#M52762</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2002-03-08T19:05:26Z</dc:date>
    </item>
  </channel>
</rss>

