[Java] Valeur absolue d'une distance

Valeur absolue d'une distance [Java] - Java - Programmation

Marsh Posté le 08-08-2008 à 11:52:36    

Salut la compagnie  :hello: ,
 
Existe-t-il une méthode dans l'API java permettant de calculer la valeur absolue d'une distance ?
 
Ex.
 
|-1+10| doit me renvoyer 9
|-1-10| doit me renvoyer 11
 
Merci :).


---------------
Asus P5Q Pro | C2D E8400 3GHz@4GHz + Noctua NH-C12P | 2x2Go Patriot Extreme PC-8500 | GeForce GTX 460@Stock 1Go GLH | Crucial SSD M4 64Go Sata3
Reply

Marsh Posté le 08-08-2008 à 11:52:36   

Reply

Marsh Posté le 08-08-2008 à 12:16:32    

http://java.sun.com/j2se/1.5.0/doc [...] /Math.html [:petrus dei]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 08-08-2008 à 12:38:48    

Merci  [:amandine75011]  
 
 [:anathema]


---------------
Asus P5Q Pro | C2D E8400 3GHz@4GHz + Noctua NH-C12P | 2x2Go Patriot Extreme PC-8500 | GeForce GTX 460@Stock 1Go GLH | Crucial SSD M4 64Go Sata3
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed