Suche Funktion für x^y
-
Hallo Leuts,
ich brauche eine Funktion für x^y.
Gibt es so eine?
Hoffe schon,TheExecut0r
-
pow() aus math
-
#include <cmath> int main(void) { //x und y seien double-Werte double result = std::pow(x,y); return 0; }
-
funktioniert das auch so?
Zahl1 = StrToFloat (Edit1->Text); Zahl2 = StrToFloat (Edit2->Text); float Ergebnis = pow(Zahl1,Zahl2); Label1->Caption = FloatToStr (Ergebnis);
-
habs gerade probiert, klappt! Danke