Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

Float Precision? - RPG/JAVA program

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Float Precision? - RPG/JAVA program

    Hello We've created an RPG Client program to use JAVA objects in the IFS, which, we are then using to subsribe to a WebService. The JAVA code is using DOUBLES while within the RPG program using Prototyping to access the JAVA classes/methods and placing the results into Packed Decimal fields. I've thought about storing the results in Floats on the 400 but I don't think this will help since eventually we'll need to extract to show on a users screen or report. All of the DB2/400 fields we are using are defined as Packed Decimal with no more than 2 decimal positions. I've thought about performing a EVAL (H) while extracting the "GET" from my JAVA method. From the example I was looking at this would handle the precision issue, however I don't know if this is a good way of handling. If anyone has any ideas or suggestions please let me know. Thanks! Jeff S
Working...
X