solveing a mathematical expression

In JEP 8 - 7.9 would give 0.09999999999999964 rather than 0.1.Is there any API in java which solves a mathematical expression with out giving such problem
[161 byte] By [A-@Za] at [2007-11-26 19:16:54]
# 1
Read about the BigDecimal class
kajbja at 2007-7-9 21:30:32 > top of Java-index,Java Essentials,Java Programming...
# 2
If precision is that import, you can use java.math.BigDecimal. But be aware that calculations will be slower than using simple type arithmetics.
ProggerFromKupfera at 2007-7-9 21:30:32 > top of Java-index,Java Essentials,Java Programming...
# 3
I already such a big value "0.09999999999999964 ".I want to round it off to 0.1ceil floor and round are not helping out.is there any method which rounds it off to 0.1 for example
A-@Za at 2007-7-9 21:30:32 > top of Java-index,Java Essentials,Java Programming...
# 4
Ya i got the solution MathContext and BigDecimal do the work togetherThanx a lot
A-@Za at 2007-7-9 21:30:32 > top of Java-index,Java Essentials,Java Programming...
# 5
Just a hintint round = (val + 0.05) *10;
_Dima_a at 2007-7-9 21:30:32 > top of Java-index,Java Essentials,Java Programming...