• Курсы
  • Компилятор кода
  • Обсуждения
  • Цены
  • Teams
Menu
+ 1

how to fix decimal places to two?

java
8th Apr 2019, 1:20 PM
Nur Suriani
Nur Suriani - avatar
2 ответов
+ 2
Double number; number = Math.rint(number * 100) / 100;
8th Apr 2019, 10:05 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
You may refer to this guide http://tutorials.jenkov.com/java-internationalization/decimalformat.html
8th Apr 2019, 1:44 PM
Seniru
Seniru - avatar

Часто задают такие вопросы?

Учитесь эффективнее, бесплатно:

  • Введение в Python

    7.1M учащихся

  • Введение в Java

    4.7M учащихся

  • Введение в C

    1.5M учащихся

  • Введение в HTML

    7.5M учащихся

Смотреть все курсы
Актуальное сегодня
Is anyone else experiencing this Sololearn issue?
0 Votes
Best language?
0 Votes
How do I keep myself motivated in coding
0 Votes
Bro can you fix yt error?
0 Votes
Anyone have song names? Comment your favorites here for a project im working on
1 Votes
Learn - multiple choice course questions display in one box making it impossible to continue
1 Votes
I want to know how to make an Payment App like what I need to learn I need some guidance
0 Votes
Need suggestions to learn AI and ML
1 Votes
Bug in Completing AI Practice
0 Votes
Duration of heart refilling
0 Votes