Java BigDecimal alternative library -
this may strike particularly odd must compile several new code against gcj; doesn't support java's bigdecimal.
what i'm looking alternative java.math.bigdecimal.
can point me in right direction?
thanks!
it looks gcj compiling against jdk 1.4.2, provides setscale(int scale, int roundingmode)
, setscale(int scale)
.
the code you're trying compile seems have been written jdk 1.5.0 , above. in jdk 1.5.0, setscale(int newscale, roundingmode roundingmode)
in addition other two.
you can see if there update gcj lets use 1.5. looking @ gcj website, don't see case. says current version "supports of 1.4 libraries plus 1.5 additions."
your other option rewrite code calls setscale(int newscale, roundingmode roundingmode)
replaced setscale(int scale, int roundingmode)
. in 1.5.0, instead of specifing integer value roundingmode
(using static ints in bigdecimal
), can specify using roundingmode
enum (the older method still maintained backwards compatibility).
so in code, instead of roundingmode.ceiling
, use bigdecimal.round_ceiling
.
Comments
Post a Comment