|
there is decimals yes, so yes rounded like you say would be the way to go,
thanks.
On Tue, Apr 14, 2015 at 7:41 PM, Barbara Morris <bmorris@xxxxxxxxxx>
wrote:
On 2015-04-13 18:01, Hoteltravelfundotcom wrote:
HI I Have to move a data value (weight of an item) which is char 11 intoIs it possible that the character value represents a value with decimal
a
numeric 7 02
field.
places? If so, what does it look like?
If a value like '12345' actually means 123.45, then %DEC won't work by
itself. You'd have to multiply the result by 0.01.
But if a value with decimal places is something like '123.45', and a
value like '12345' means 12345, then %DEC will work fine.
If the character value might have more than two decimal places, say
'123.459', then you should use %DECH to get it rounded to 123.46.
--
Barbara
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
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.