cancel
Showing results for 
Search instead for 
Did you mean: 

double - variables

weigelt
Associate II
Posted on April 19, 2005 at 04:44

double - variables

3 REPLIES 3
weigelt
Associate II
Posted on April 08, 2005 at 05:40

Hi all,

I´ve got a problem using double-variables. They don´t get the values I try to write into. Here is my code:

#include ''71x_lib.h''

#include ''math.h''

int main(void)

{

double z,x,y;

debug();

x=2.0;

y=3.0;

z=pow(x,y);

while(1);

}

Very simple, but doesn´t work. The values I get are:

x=5.30498947741e-315 (should be 2.0)

y=5.30757980431e-315 (should be 3.0)

z=5.31599836671e-315 (should be 8.0)

Float seems to work, as long as I don´t try to use functions from math.h, because almost all functions of math.h expect double for their parameters. Is this a known problem?

Regards,

Marcus

weigelt
Associate II
Posted on April 08, 2005 at 05:42

Forgot to mention:

I´m using STR710FZ2T6 and RVDS2.1

weigelt
Associate II
Posted on April 19, 2005 at 04:44

okay, that´s not a problem, as long as i know, that these varaiables have the right value and it´s only a problem of the debugger to show them correctly. Thanks for your help ibtiss.

Regards,

Marcus