Re: BigDecimal API docs andd "reuse"
- From: "Murray" <parps@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 18 Jun 2005 02:11:10 +1000
"Val" <valeriu.nedelcu@xxxxxxxxx> wrote in message
news:1119006178.092055.121800@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> return new BigDecimal(BigInteger.valueOf(unscaledVal), scale);
BigInteger#valueOf(long) does cache however, so indirectly there is caching
going on :) You'll always get a new BigDecimal, but the BigInteger contained
within it will/might be reused.
.
- References:
- BigDecimal API docs andd "reuse"
- From: Sebastian Millies
- Re: BigDecimal API docs andd "reuse"
- From: Val
- BigDecimal API docs andd "reuse"
- Prev by Date: Apparent Java Location Restriction
- Next by Date: Re: JVM vs. EXE comaprison
- Previous by thread: Re: BigDecimal API docs andd "reuse"
- Next by thread: How to change the encoding of fileinput or fileoutput streams
- Index(es):
Relevant Pages
|