The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 why atof("0.003315") return 0.00331

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
70WorkRoom Posted - 07/13/2007 : 05:26:51 AM
Version:Origin pro 7.5
Operaion System:windows 2000

I need the result is 0.00332

Another question.
when i make a graph that be fitted linear,how can i copy it to a microsoft word with origin c?

I need your help,thanks very much.


Edited by - 70WorkRoom on 07/13/2007 05:51:39 AM
2   L A T E S T    R E P L I E S    (Newest First)
70WorkRoom Posted - 07/14/2007 : 09:30:29 AM
thank you very much.
Mike Buess Posted - 07/14/2007 : 08:29:39 AM
atof("0.003315") returns the number 0.003315. Any rounding off you see results from subsequent formatting...

double run_atof(string str)
{
double x = atof(str);
printf("x=%.5f\n",x);
return x;
}

>run_atof("0.003315")=;
>x=0.00331
>RUN_ATOF("0.003315")=0.003315


quote:
when i make a graph that be fitted linear,how can i copy it to a microsoft word with origin c?
The file Samples\COM Client\ReportCreation.c should give you some ideas.

Mike Buess
Origin WebRing Member

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000