Kurse
AnmeldenBeginne KI zu lernen
Kurse
AnmeldenBeginne KI zu lernen
+ 1

how to fix decimal places to two?

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

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
Audio adding
1 Votes
playground input
0 Votes
What is problem in this code
0 Votes
Stuck in Quize
1 Votes
C Program
0 Votes
This Program Does Something Weird. Can You Explain Why?
1 Votes
Software developer
0 Votes
Asking for final year project ideas!
1 Votes
How does JavaScript's event loop handle asynchronous operations like setTimeout, Promises, and async/await, and what are the dif
1 Votes
есть кто на русском разговаривает?
0 Votes