As I understand this, these BigNumbers are used where precision matters
and performance
doesn't. Look at 
http://java.sun.com/j2se/1.3.0/docs/api/java/math/BigInteger.html
and 
http://java.sun.com/j2se/1.3.0/docs/api/java/math/BigDecimal.html

These could be useful if you are doing cryptogaraphy and want to do
exact calaculations on long numbers ( factor 10^128) or retain some
large
number of digits after a division. 

What I don't understand is why BigDecimal isn't derived from BigInteger.
It looks like BigInteger is (really) a String and BigDecimal *is* a 
BigInteger with a scale factor. Is there anyway to postpone division
( say, somekind of BigRational class)?

Do you have a link to something like " How to Represent Money (in a
Servlet, of course)" ?
I don't have any idea what the issues are. Presumably, control of
rounding in exchange
calculations would be one issue. 

Thanks.

->-----Original Message-----
->From: Anantha_Krishnan [mailto:[EMAIL PROTECTED]]
->Sent: Friday, August 31, 2001 5:20 AM
->To: [EMAIL PROTECTED]
->Subject: Re: Out Of Topic - Bigdecimal vs byteValue- Suggestion
->solicited
->
->
->I dont think so
->
->-----Original Message-----
->From: Firat Tiryaki [mailto:[EMAIL PROTECTED]]
->Sent: Friday, August 31, 2001 4:57 PM
->To: [EMAIL PROTECTED]
->Subject: Re: Out Of Topic - Bigdecimal vs byteValue- Suggestion
->solicited
->
->
->BigDecimal is generally used for rounding decimal numbers, 
->because of its
->methods.
->----- Original Message -----
->From: "Anantha_Krishnan" <[EMAIL PROTECTED]>
->To: <[EMAIL PROTECTED]>
->Sent: Friday, August 31, 2001 11:07 AM
->Subject: Out Of Topic - Bigdecimal vs byteValue- Suggestion solicited
->
->
->> Hi all,
->> Just suggest me whether to use BigDecimal for VLN's [very 
->large numbers]
->or
->> not.
->> Any other way to store and operate upon these VLN's for 
->financial Math in
->> java pl lemme know.
->> What is the max no of digits a big decimal can store. At 
->the most I need
->to
->> store "billionbillion " values.
->> Ive gone thru the large specs at suns site and searched the 
->archive but
->iam
->> not satisfied with the queries and answers posted there. 
->Any code snippets
->> pl help me.
->>
->> Also in the archives i found a suggestion byteValue is more 
->suitable to
->> store the number "exact".
->> Pl throw some light on this also.[Cos may be solve out of 
->memory problem
->> also]
->>
->> regards
->> ananth
->>
->>
->______________________________________________________________
->_____________
->> To unsubscribe, send email to [EMAIL PROTECTED] and 
->include in the
->body
->> of the message "signoff SERVLET-INTEREST".
->>
->> Archives: 
->http://archives.java.sun.com/archives/servlet-interest.html
->> Resources: 
->http://java.sun.com/products/servlet/external-resources.html
->> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
->>
->
->______________________________________________________________
->_____________
->To unsubscribe, send email to [EMAIL PROTECTED] and 
->include in the body
->of the message "signoff SERVLET-INTEREST".
->
->Archives: http://archives.java.sun.com/archives/servlet-interest.html
->Resources: 
->http://java.sun.com/products/servlet/external-resources.html
->LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
->
->______________________________________________________________
->_____________
->To unsubscribe, send email to [EMAIL PROTECTED] and 
->include in the body
->of the message "signoff SERVLET-INTEREST".
->
->Archives: http://archives.java.sun.com/archives/servlet-interest.html
->Resources: 
->http://java.sun.com/products/servlet/external-resources.html
->LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
->
->

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to