Jul 26, 2002 #1 Maurader Technical User Joined May 8, 2002 Messages 59 Location CA How do I convert a double to a string?
Jul 26, 2002 #2 Skatanic Programmer Joined Jun 25, 2002 Messages 37 Location US Here is the prototype for it. char *_gcvt( double value, int digits, char *buffer ); Shouldn't be too hard to figure out. Just make sure to include <stdlib.h>. -Skatanic Upvote 0 Downvote
Here is the prototype for it. char *_gcvt( double value, int digits, char *buffer ); Shouldn't be too hard to figure out. Just make sure to include <stdlib.h>. -Skatanic
Jul 28, 2002 #3 RavenEris Programmer Joined Jul 24, 2002 Messages 13 Location US You should check out sprintf(), too... Here's the prototype: Code: int sprintf( char *buffer, const char *format [, argument] ... ); Where *buffer is usually just an array of char (like Code: char temp[255] ), *format is a string that looks like this "%e"... Upvote 0 Downvote
You should check out sprintf(), too... Here's the prototype: Code: int sprintf( char *buffer, const char *format [, argument] ... ); Where *buffer is usually just an array of char (like Code: char temp[255] ), *format is a string that looks like this "%e"...