how to fix decimal places to two? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

how to fix decimal places to two?

8th Apr 2019, 1:20 PM
Nur Suriani
Nur Suriani - avatar
2 Réponses
+ 2
Double number; number = Math.rint(number * 100) / 100;
8th Apr 2019, 10:05 PM
Denise Roßberg
Denise Roßberg - avatar
8th Apr 2019, 1:44 PM
Seniru
Seniru - avatar