<?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: Is there integer limit in HP-UX ksh? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/is-there-integer-limit-in-hp-ux-ksh/m-p/3843384#M776912</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the posix shell only supports 32 bits integers, i.e. max  2147483648&lt;BR /&gt;&lt;BR /&gt;Try Ralph's suggestion, e.g.:&lt;BR /&gt; # echo "4190246798 + 4190246798" | bc&lt;BR /&gt;8380493596&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;</description>
    <pubDate>Tue, 15 Aug 2006 03:38:28 GMT</pubDate>
    <dc:creator>john korterman</dc:creator>
    <dc:date>2006-08-15T03:38:28Z</dc:date>
    <item>
      <title>Is there integer limit in HP-UX ksh?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-there-integer-limit-in-hp-ux-ksh/m-p/3843382#M776910</link>
      <description>I added 2 big integer numbers and got a negative number. for example:&lt;BR /&gt;&lt;BR /&gt;$ (( i = 4190246798 + 4190246798 ))&lt;BR /&gt;$ echo $i&lt;BR /&gt;-209440996&lt;BR /&gt;&lt;BR /&gt;Please ksh expert explain the reason.&lt;BR /&gt;BTW, I try the same example in Solaris, Solaris ksh can give correct result. Please try.</description>
      <pubDate>Tue, 15 Aug 2006 03:22:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-there-integer-limit-in-hp-ux-ksh/m-p/3843382#M776910</guid>
      <dc:creator>Louis Liu_1</dc:creator>
      <dc:date>2006-08-15T03:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is there integer limit in HP-UX ksh?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-there-integer-limit-in-hp-ux-ksh/m-p/3843383#M776911</link>
      <description>You should use bc for those bigint arithmetics.&lt;BR /&gt;I'm not sure if a typeset -i declaration can cope, but man ksh should tell.</description>
      <pubDate>Tue, 15 Aug 2006 03:28:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-there-integer-limit-in-hp-ux-ksh/m-p/3843383#M776911</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2006-08-15T03:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is there integer limit in HP-UX ksh?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-there-integer-limit-in-hp-ux-ksh/m-p/3843384#M776912</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the posix shell only supports 32 bits integers, i.e. max  2147483648&lt;BR /&gt;&lt;BR /&gt;Try Ralph's suggestion, e.g.:&lt;BR /&gt; # echo "4190246798 + 4190246798" | bc&lt;BR /&gt;8380493596&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Aug 2006 03:38:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-there-integer-limit-in-hp-ux-ksh/m-p/3843384#M776912</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2006-08-15T03:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is there integer limit in HP-UX ksh?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-there-integer-limit-in-hp-ux-ksh/m-p/3843385#M776913</link>
      <description>Louis,&lt;BR /&gt;looks like 2^31 is the limit.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Aug 2006 03:38:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-there-integer-limit-in-hp-ux-ksh/m-p/3843385#M776913</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-08-15T03:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is there integer limit in HP-UX ksh?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-there-integer-limit-in-hp-ux-ksh/m-p/3843386#M776914</link>
      <description>It's a 32-bit signed integer and thus the range is -(2^31) to +(2^31 - 1).</description>
      <pubDate>Tue, 15 Aug 2006 08:57:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-there-integer-limit-in-hp-ux-ksh/m-p/3843386#M776914</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-08-15T08:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is there integer limit in HP-UX ksh?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-there-integer-limit-in-hp-ux-ksh/m-p/3843387#M776915</link>
      <description>Louis,&lt;BR /&gt;if you are happy with the solutions given, can you please reward good answers, see&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and close the thread.</description>
      <pubDate>Thu, 17 Aug 2006 03:41:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-there-integer-limit-in-hp-ux-ksh/m-p/3843387#M776915</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-08-17T03:41:12Z</dc:date>
    </item>
  </channel>
</rss>

