Message-ID: <003801b9fcf8$0e822b20$c1f9c6c3@johans-dator> From: "Johan Henriksson" To: Subject: Re: converting variables Date: Tue, 28 Mar 1995 12:38:22 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com from Johan Henriksson, Sweden HTTP://come.to/jhewok | Primary mail: johan DOT he AT telia DOT com #UIN 12035895 Second: jhe75 AT hotmail DOT com Third: johan_he AT yahoo DOT com Leadprogrammer and FX-specialist at Real software http://come.to/real_software ************************************************************************* -----Original Message----- From: ryan_brown AT my-dejanews DOT com Newsgroups: comp.os.msdos.djgpp To: djgpp AT delorie DOT com Date: Sunday, March 28, 1999 3:55 AM Subject: converting variables >How can I convert values from a variable of one type to another variable of a >different type? I need to convert a float variable over to a char variable. Just a int = float; C does all of it automaticly. >In pascal there were functions for this in c I can't find anything. I have >heard of casting but I can't get it to work and there isn't any documentation >about it anywhere. Get a book. Casting is usually not needed in this case. >Someone also told me that you can't cast between float >and char. Beat him up. >Does anyone know of a funciton or anything that can be used for >this? Thanks in advance. > >-----------== Posted via Deja News, The Discussion Network ==---------- >http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own >