public static byte[] calculerDecimalesPi(int i) {
		byte[] aRetourner=new byte[i+1];
		BigDecimal somme = BigDecimal.ZERO; 
		for (int j=0; j<2*i; j++){ 
			BigDecimal part1 = new BigDecimal(4.0/(8*j+1)); 
			BigDecimal part2 = new BigDecimal(2.0/(8*j+4)); 
			BigDecimal part3 = new BigDecimal(1.0/(8*j+5)); 
			BigDecimal part4 = new BigDecimal(1.0/(8*j+6)); 
			BigInteger part5 = BigInteger.valueOf(16).pow (j); 
			part1 = part1.subtract(part2); 
			part1 = part1.subtract(part3); 
			part1 = part1.subtract(part4); 
			part1 = part1.divide (new BigDecimal(part5)); 
			somme = somme.add (part1); 
		} 
		// On ne retourne que les dcimales demandes car le reste est faux 
		BigDecimal nbd = new BigDecimal (10.0).pow (2*i); 
		// On multiplie par 10^nbdecimal 
		somme = somme.multiply (nbd); 
		// On prends la partie entire 
		BigInteger tempSomme = somme.toBigInteger (); 
		String s=new BigDecimal(tempSomme).divide (nbd).toString ();
		int z=0;
		for(int r=2;z<i+1;r++) {
			if(Byte.parseByte(""+s.charAt(r))!=0) {
				aRetourner[z]=Byte.parseByte(""+s.charAt(r));
				z++;
			}
		}
		return aRetourner;
	}