• Cursos
  • Compilador de Código
  • Discutir
  • Preços
  • Teams
Menu
+ 1

how to fix decimal places to two?

java
8th Apr 2019, 1:20 PM
Nur Suriani
Nur Suriani - avatar
2 Respostas
+ 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

Costuma ter perguntas como essa?

Aprenda de maneira mais eficiente, de graça:

  • Introdução ao Python

    7.1M de alunos

  • Introdução ao Java

    4.7M de alunos

  • Introdução ao C

    1.5M alunos

  • Introdução ao HTML

    7.5M alunos

Ver todos os cursos
Quente hoje
Hello can anyone help me to learn gdscript
0 Votes
What coding language should i use to make a custom coding language?
0 Votes
hello world i need help
2 Votes
Anyone Learning Godot?
1 Votes
Any easy game ideas for beginners?
0 Votes
Which is more important CSS vs HTML vs JS?
1 Votes
How many courses are there on Sololearn
1 Votes
hi
1 Votes
Which databases are the best at injecting dynamic data within websites, and how can you achieve it?
0 Votes
How to increase My Level is SoloLearn ?
0 Votes