|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Feb 2003
Messaggi: 3532
|
[JAVA]decimali Help urgente
se devo fare 9/8 come faccio a dirglidi rendermi un numero con 2 decimali? intendo con il formato 1,xx???
grazie mille |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Jan 2001
Città: Milano
Messaggi: 5707
|
Codice:
NumberFormat nf= new DecimalFormat("0.00");
String s = nf.format(1234.5678);
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 19:05.



















