delorie.com/archives/browse.cgi | search |
From: | ryan_brown AT my-dejanews DOT com |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Converting between varable types |
Date: | Sun, 28 Mar 1999 15:17:36 GMT |
Organization: | Deja News - The Leader in Internet Discussion |
Lines: | 13 |
Message-ID: | <7dlh6c$4b3$1@nnrp1.dejanews.com> |
NNTP-Posting-Host: | 152.171.61.72 |
X-Article-Creation-Date: | Sun Mar 28 15:17:36 1999 GMT |
X-Http-User-Agent: | Mozilla/4.5 [en] (Win95; I) |
X-Http-Proxy: | 1.0 x16.dejanews.com:80 (Squid/1.1.22) for client 152.171.61.72 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
How do you convert data between variables of different types? I need to convert the data in a float variable to a char variable. In pascal you could just use funcitons like FloatToStr() however 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 information on it anywhere on the internet as far as I can tell. Could someone point me to some source code or a function that I could use for converting this stuff? thanks in advance. I'm sorry if I sent this message more than once I've been trying to send it for two days with dejanews and everytime I click send they lose my message and tell me I have to do something else first so I don't know if it got sent. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |