Bigdecimal fwdpts = -1.1400000000000001 < /p>
< /blockquote>
Я хочу завершить его до двух десятичных мест
после выполнения ниже кода: < /p>
Код: Выделить всё
MathContext mathContext = new MathContext(2);
fwdPts = fwdPts .round(mathContext);
fwdpts = -1,1
?>
Подробнее здесь: https://stackoverflow.com/questions/795 ... mal-places