Potenzieren
-
Hallo,
gibt es eigentlich einen Operator zum Potenzieren? Oder eine Funktion?
-
std::pow aus cmath wenn ich mich nicht irre
Syntax:
#include <cmath>
double std::pow( double base, double exp );The pow() function returns base raised to the expth power. There's a domain error if base is zero and exp is less than or equal to zero. There's also a domain error if base is negative and exp is not an integer. There's a range error if an overflow occurs.
Related topics:
-
Und wie verwendet man die?
-
-
Danke!
