<?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: Max integer value in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/max-integer-value/m-p/2424053#M613</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can also use bc -l for decimals&lt;BR /&gt;</description>
    <pubDate>Tue, 30 May 2000 16:27:25 GMT</pubDate>
    <dc:creator>CHRIS_ANORUO</dc:creator>
    <dc:date>2000-05-30T16:27:25Z</dc:date>
    <item>
      <title>Max integer value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/max-integer-value/m-p/2424051#M611</link>
      <description>I've HP-UX 11.00 (64 bit) on an N-class. When I'm doing arithmatic on an integer variable in 'ksh' shell script, I get negative values when it is more than 2 power 31. It looks like the default size of integer variable is 32-bit. Does anyone know if this can be changed to 64-bit, either by changing some kernel parameter or within the shell script by some type definition.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Srinivas Emani</description>
      <pubDate>Fri, 26 May 2000 14:34:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/max-integer-value/m-p/2424051#M611</guid>
      <dc:creator>Kellogg Unix Team</dc:creator>
      <dc:date>2000-05-26T14:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Max integer value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/max-integer-value/m-p/2424052#M612</link>
      <description>There is no way to induce ksh to use 64 bits.  Sorry for the bad news.&lt;BR /&gt;&lt;BR /&gt;To do arithmetic in ksh with no magnitude limit, you can use bc.  Instead of:&lt;BR /&gt;&lt;BR /&gt;((a=b+c))&lt;BR /&gt;&lt;BR /&gt;do:&lt;BR /&gt;&lt;BR /&gt;a=$(echo $b + $c | bc)&lt;BR /&gt;&lt;BR /&gt;But a,b, and c must NOT be typeset to integers to do this.</description>
      <pubDate>Fri, 26 May 2000 16:38:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/max-integer-value/m-p/2424052#M612</guid>
      <dc:creator>Paul Hite</dc:creator>
      <dc:date>2000-05-26T16:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Max integer value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/max-integer-value/m-p/2424053#M613</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can also use bc -l for decimals&lt;BR /&gt;</description>
      <pubDate>Tue, 30 May 2000 16:27:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/max-integer-value/m-p/2424053#M613</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-05-30T16:27:25Z</dc:date>
    </item>
  </channel>
</rss>

