double - variables
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2005-04-18 7:44 PM
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2005-04-07 8:40 PM
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, MarcusOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2005-04-07 8:42 PM
Posted on April 08, 2005 at 05:42
Forgot to mention:
I´m using STR710FZ2T6 and RVDS2.1Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2005-04-18 7:44 PM
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