Tag: math
All the articles with the tag "math".
-
C++ Exponents: Why ^ Isn't Power and How to Use pow()
C++ has no power operator, and ^ means XOR, not exponent. Learn how to use pow() from cmath, avoid its precision traps, and compute integer powers safely.