AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Precisione dei float

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian)
View previous topic :: View next topic  
Author Message
Bixio
Guest





PostPosted: Wed Feb 25, 2004 1:34 pm    Post subject: Precisione dei float Reply with 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
Andrea B.
Guest





PostPosted: Fri Feb 27, 2004 9:58 am    Post subject: Re: Precisione dei float Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.