On 12/18/04 3:55 PM, "Mike Hall" <email@hidden> wrote:
> So, I have a double I now want to return as probably a BigDecimal. Do I return
> more precise values by going double -> Double -> String -> BigDecimal or is
> the precision possibly already doomed and I might just as well just go double
> -> BigDecimal?
I'm not sure I've really understood what you are asking, but if you have a
number stored in a variable of type 'double', then the precision of that
number is whatever the precision of 'double' is. Converting it to some other
type is obviously not going to add back whatever information was lost in
going from a mathematical real number to the limited precision number that
can be stored in a 'double'.
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden