To the power of

This is a discussion on To the power of within the C Programming forums, part of the General Programming Boards category; Is there a command or operator in C that does 'to the power of' basically the '^' sign in maths ...

  1. #1
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218

    To the power of

    Is there a command or operator in C that does 'to the power of' basically the '^' sign in maths speak.

  2. #2
    Registered User
    Join Date
    Jun 2006
    Posts
    75
    There's pow.

  3. #3
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218
    Thanks.

  4. #4
    Registered User
    Join Date
    Nov 2006
    Posts
    65
    just a cool tidbit sqrt can also be done with pow x^1/2 power is the square root and so on and so forth.
    You rant and rave about it, but at the end of the day, it doesn't matter if people use it as long as you don't see.
    People are free to read the arguments, but if the only way for you to discover gravity is by jumping off a cliff, then that is what you're going to have to experience for yourself.
    Eventually, this "fast and loose" approach of yours will bite you one too many times, then you'll figure out the correct way to do things. - Salem

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem With My Box
    By HaVoX in forum Tech Board
    Replies: 9
    Last Post: 10-15-2005, 07:38 AM
  2. The destructive power of a nuclear bomb
    By InvariantLoop in forum A Brief History of Cprogramming.com
    Replies: 30
    Last Post: 03-24-2005, 01:46 AM
  3. Power supplies and demanding processors
    By Liger86 in forum Tech Board
    Replies: 12
    Last Post: 03-17-2005, 10:56 AM
  4. power recursion
    By datainjector in forum C Programming
    Replies: 2
    Last Post: 11-06-2002, 03:56 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21