Hi, Pete --
I agree that the javadoc is confusing. But if you look at the javadoc for
AS400PackedDecimal it indicates that it "provides a converter between a
BigDecimal object and a packed decimal format floating point number." Also,
if you notice in the setUseDouble method javadoc, it starts out with Sets
"whether to return a Double object or a BigDecimal object on a call to
toObject()." The default as explained in the isUseDouble documentation is
BigDecimal (not BigInteger). You might want to submit a request to the
JTOpen people to enhance the class documentation just a bit but I'm afraid
that it's one of those things that once you know it, it's no big deal. But,
it doesn't make it easy for people new to the class. This is pretty much
the same for all of the classes that implement AS400DataType so once you
understand one of them, you mostly understand them all. But some are
documented more clearly than others.
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.