|
If you are using a numeric field from RPG most likely it is
AS400ZonedDecimal or AS400PackedDecimal. From your description of the
characters, I'd bank on packed. Probably 3/0 (three positions, zero decimal
positions). Something like this
BigDecimal result = (BigDecimal)new
AS400PackedDecimal(3,0).toObject(parmList[0].getOutputData());
I'm working from memory here, but I believe the java object returned by the
toObject of AS400PackedDecimal is BigDecimal.
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.