Bonjour,
quelqu'un aurait-il une idée sur comment associer Math.Pow à l'operateur ^
merci
Bonjour,
quelqu'un aurait-il une idée sur comment associer Math.Pow à l'operateur ^
merci
Ils n'ont aucun rapport! ^ est l'opérateur XOR (ou exclusif)
Retrouvez moi sur :
Mon Espace Developpez.com-------------------------------
Dvp.NET, une librairie open-source de composants .NET
Mon blog: Up there in the code----------------------------
Twitter: NatMarchand
Ma société: So@t
Showrizo : Suivez votre planning de séries télé sous Windows 8
Hm...ok
Mon probleme, c'est que les calcul que j'ecris prennemt rapidement un aspect illisible: Math.Pow(x, y) n'etant pas aussi concis que le ^ de VB
voila
tu peux développer une méthode d'extension qui étend double: myDouble.Pow(myPower)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 public static double Pow(this double a, double b) { return Math.Pow(a,b); }
Retrouvez moi sur :
Mon Espace Developpez.com-------------------------------
Dvp.NET, une librairie open-source de composants .NET
Mon blog: Up there in the code----------------------------
Twitter: NatMarchand
Ma société: So@t
Showrizo : Suivez votre planning de séries télé sous Windows 8
Partager