#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2002
    Posts
    421
    Rep Power
    13

    pow command doens't like variables?


    It gives me a whacked out #er when I try to find the power of two variables in math.h:

    p=pow(p,c);

    doesn't like that at all, why not? By the way..the variables are almost definately containing decimals.

    -andy
    Last edited by andy3109; May 14th, 2003 at 09:54 PM.
    hmmm...
  2. #2
  3. not a fan of fascism (n00b)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Feb 2003
    Location
    ct
    Posts
    2,756
    Rep Power
    95
    i thought the power had to be an integer?
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2002
    Posts
    421
    Rep Power
    13
    nah..it works if you manually type in decimal numbers.
    hmmm...
  6. #4
  7. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2002
    Posts
    421
    Rep Power
    13
    nevermind..Im an idiot..i was at fault not the function. Thanks to all that read.

    -andy
    hmmm...

IMN logo majestic logo threadwatch logo seochat tools logo