|
-
April 9th, 2002, 10:39 AM
#1
Please tell me , "how can i convert float or double to String" kindly help me or tell me some algori
Please tell me , "how can i convert float or double to String" kindly help me or tell me some algorithm
-
April 9th, 2002, 10:56 AM
#2
Re: Please tell me , "how can i convert float or double to String" kindly help me or tell me some al
char str[20];
sprintf(str, "%f", 3.14);
***
I like feedback, so please rate my answer.
-
April 9th, 2002, 11:15 AM
#3
Re: Please tell me , "how can i convert float or double to String" kindly help me or tell me some al
i want a algorithm to convert float to string not the syntax like it.
thank u for ur help
-
April 9th, 2002, 03:09 PM
#4
Re: Please tell me , "how can i convert float or double to String" kindly help me or tell me some al
Ok, I don't think the way floating point numbers are stored in memory is standard. Different compilers etc would or can use different schemes to handle/store floating point values. That's at least true with Standard C (ISO 9899:1990). For C++, I don't really know.
***
I like feedback, so please rate my answer.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|