×
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.
It's from the v5r4 RPG ILE reference manual, on the %Div BIF.
--
Saludos
Antonio Salazar
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Dennis Lovelady
Sent: Monday, January 11, 2010 2:59 PM
To: 'RPG programming on the IBM i / System i'
Subject: RPG overloading (was RPGV?)
Does %DIV's result count as overloading?
"If either operand is a packed, zoned, or binary numeric value, the
result is packed numeric. If either operand is an integer numeric
value,
the result is integer. Otherwise, the result is unsigned numeric.
Float
numeric operands are not allowed."
Thanks, Antonio. What are you quoting here? The V5R3 ILE Reference
Manual
says that %DIV returns "the integer portion of the quotient." So while
I
don't understand (nor quite believe) the reference, I don't think it
qualifies as a result-type overload.
Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"Experience is not what happens to a man; it is what a man does with
what
happens to him."
-- Aldous Huxley
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.