bonjour,
je vien d'ecrire cette fonction pour calculer la puissance
mais je cherche la fonction de java qui remplace ma fonction.Code:
1
2
3
4
5
6
7 public static Float myPow(Float n,Long p) throws Exception { Float r = Float.valueOf("0"); if(p <= 0){ return Float.valueOf("1"); } return myPow(n,p-1)*n; }