Advertisement

Floats

Started by January 15, 2001 01:02 PM
0 comments, last by Indy 24 years ago
If GetDlgItemInt(hdwnd,ID_EB1,NULL,1); retrives an int, how do I get hold of floats. My program needs to work with input/outputs that need 3-4 decimal places, how do I do that? Do I need to set my Editboxes up as floats? Thanks Indy
Indy
A quick solution would be to read it in using GetDlgItemText() and use atof() to convert it to a float.

-------
Andrew

This topic is closed to new replies.

Advertisement