×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Thanks Scott.
Apologies for my sloppy link!
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Thursday, July 11, 2013 2:51 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: Split Number into whole and fractional parts
Gary... that link is to the root of the Information Center, so it'd be hard to tell which specific piece of info you're referring to from that link.
But, DB2 integers should allow values from -2147483648 to 2147483647.
So, it will allows 10-digit numbers as long as they are less than or
equal to 2147483647. If it really only allows 9-digit numbers, it's
not a true integer!
But, having said that, this thread is about RPG not DB2. RPG supports 64-bit integers, so the %INT BIF should handle numbers as large as 9223372036854775808. (Try to memorize that, haha) So that's most 19-digit numbers, and all 18-digit numbers that it will handle.
Using %DEC() of course lets yo handle up to 63 digits, but how often does that come up?
On 7/11/2013 2:02 PM, Gary Thompson wrote:
This link:
http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/index.jsp
seems to say DB2 integers are 0 to 9 digits
As an Amazon Associate we earn from qualifying purchases.