dans
le package java.lang.Math, methode
static int |
round(float a)
Returns the closest int to the
argument. |
-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Envoy� : jeudi 17 octobre 2002 08:11
� : [EMAIL PROTECTED]
Objet : Float en int
Bonjour,
J'obtiens le r�sultat d'un calcul dans un float: exemple = 1,82.
Comment faire pour obtenir un int ou Integer valant 2.
Merci pour vos r�ponses.
Eddy PALISSE
--
INGENCYS
Agence Conseil & Ing�nierie en Syst�mes d'Informations
20A, rue du Grand S�minaire
28630 LE COUDRAY
T�l. 02 37 25 12 00 - Fax : 02 37 25 12 01
http://www.ingencys.net
