View Single Post
Old Feb 3rd, 2006, 1:06 AM   #1
dvu
Newbie
 
Join Date: Jul 2005
Location: Houston. Texas
Posts: 3
Rep Power: 0 dvu is on a distinguished road
How do i use a ^ for a double variable?

I need to raise a double variable to X power.

something like this...

double rate;
double sum;

sum = rate ^ -360;

When i try to compile i get the error "Operator '^' cannot be applied operands of type 'double'.

So how does one take a double to X power?

Sorry if i am hard to understand. Im still very new to this.

TIA
dvu is offline   Reply With Quote