About 909,000 results
Open links in new tab
  1. How do you do exponentiation in C? - Stack Overflow

    Dec 24, 2024 · If you want to take powers of integers, and the base isn't known to be an exponent of 2, you'll have to roll your own. Usually the dumb way is good enough. int power(int base, …

  2. math - To the power of in C? - Stack Overflow

    Here x is base and y is exponent. Result is x^y. Usage pow(2,4); result is 2^4 = 16. // this is math notation only // In C ^ is a bitwise operator And make sure you include math.h to avoid warning …

  3. What is the C++ function to raise a number to a power?

    #include <iostream> #include <conio.h> using namespace std; double raiseToPow(double ,int) //raiseToPow variable of type double which takes arguments (double, int) void main() { double …

  4. What are the exponent characters (in non-formatted text)? How …

    Dec 9, 2019 · I´m searching for a list of exponents like ¹²³ and so on and the same with letters. Note these still remain superscripted even in plain text.

  5. What is a "bias value" of floating-point numbers? - Stack Overflow

    Mar 19, 2016 · If you used a twos-complement representation for the exponent, a small positive number (i.e., with a negative exponent) would look like a very large integer because the …

  6. Is there an exponent operator in C#? - Stack Overflow

    Jun 14, 2010 · public static double Pow(this double value, double exponent) { return Math.Pow(value, exponent); } This allows you to write. a.Pow(b); instead of. Math.Pow(a, b); I …

  7. How can I use "e" (Euler's number) and power operation?

    Aug 25, 2016 · math.e or from math import e (= 2.718281…). The two expressions math.exp(x) and e**x are equivalent however: Return e raised to the power x, where e = 2.718281… is the …

  8. pow - Does Java have an exponential operator? - Stack Overflow

    Is there an exponential operator in Java? For example, if a user is prompted to enter two numbers and they enter 3 and 2, the correct answer would be 9. import java.util.Scanner; public class

  9. C++, scientific notation, format number - Stack Overflow

    Is it possible to format string in scientific notation in the following ways: set fixed places in exponent: 1 set fixed decimal places in mantissa: 0 double number = 123456.789 So the …

  10. Exponentials in python: x**y vs math.pow (x, y) - Stack Overflow

    Jan 7, 2014 · This returns in mere milliseconds instead of the massive amount of time and memory that the plain exponent takes. So, when dealing with large numbers and parallel …