Advertisement

02.07.2003 at 09:58AM PST, ID: 20504756
[x]
Attachment Details

Convert double to char??

Asked by edrus in C Programming Language

Tags: double, convert, char

Hi all,

How can i convert a double number to an array of char, or a pointer to char??

Ex:

double d = 593.90;
char mesg[255]; // or char * mesg;

how the variable mesg can obtain "593.90" without sprintf ??

Thanx.Start Free Trial
[+][-]02.07.2003 at 10:09AM PST, ID: 7904797

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.07.2003 at 11:58AM PST, ID: 7905455

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: C Programming Language
Tags: double, convert, char
Sign Up Now!
Solution Provided By: zebada
Participating Experts: 2
Solution Grade: B
 
 
[+][-]02.07.2003 at 12:05PM PST, ID: 7905479

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32