Advertisement

Typecasting

Started by February 23, 2001 09:10 PM
0 comments, last by mesHead 23 years, 11 months ago
Hi! I just was wondering if anyone could tell me how to typecast a string containing ''32'' to a float and/or int so that I can use it in a calculation. Thanks for any help any of you can give! -- mesHead.
mesHead
iX = atoi(szString); for an integer

dX = atof(szString); for a double

Edited by - Maxxes on February 23, 2001 12:10:15 AM

This topic is closed to new replies.

Advertisement