Hardware Upgrade Forum
>
Software
>
Programmazione
> [JAVA]decimali Help urgente
PDA
View Full Version :
[JAVA]decimali Help urgente
thefrog
13-07-2004, 15:07
se devo fare 9/8 come faccio a dirglidi rendermi un numero con 2 decimali? intendo con il formato 1,xx???
grazie mille ;)
kingv
13-07-2004, 15:10
NumberFormat nf= new DecimalFormat("0.00");
String s = nf.format(1234.5678);
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.