|
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.
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.