From: ryan_brown AT my-dejanews DOT com Newsgroups: comp.os.msdos.djgpp Subject: converting variables Date: Sun, 28 Mar 1999 01:24:30 GMT Organization: Deja News - The Leader in Internet Discussion Lines: 10 Message-ID: <7dk0c8$v0e$1@nnrp1.dejanews.com> NNTP-Posting-Host: 171.210.215.202 X-Article-Creation-Date: Sun Mar 28 01:13:07 1999 GMT X-Http-User-Agent: Mozilla/4.5 [en] (Win95; I) X-Http-Proxy: 1.0 x3.dejanews.com:80 (Squid/1.1.22) for client 171.210.215.202 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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. 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. Someone also told me that you can't cast between float and char. 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