 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Bixio Guest
|
Posted: Wed Feb 25, 2004 1:34 pm Post subject: Precisione dei float |
|
|
Come faccio a stabilire il numero di decimali (numeri dopo la virgola) di un
float? Vorrei stampare solo il primo, invece, di defautl me ne stampa 7-8.
Grazie
|
|
| Back to top |
|
 |
Andrea B. Guest
|
Posted: Fri Feb 27, 2004 9:58 am Post subject: Re: Precisione dei float |
|
|
vedi sulla documentazione NumberFormat su java.text.*
"Bixio" <bixio.ng (AT) email (DOT) it> ha scritto nel messaggio
news:ev1%b.27786$IT2.889935 (AT) news4 (DOT) tin.it...
| Quote: | Come faccio a stabilire il numero di decimali (numeri dopo la virgola) di
un
float? Vorrei stampare solo il primo, invece, di defautl me ne stampa 7-8.
Grazie
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|