Avatar of ehensens
ehensens
Flag for United States of America

asked on 

C convert character array into double?

Hi all,

I have a character array consisting of many digits. Is there a good way to convert this into a double variable? Please see the code attached. Thank you so much in advance!
char mybuf[50] = "41354876842242";
 
// go from that above, to this below:
 
double theNumber = 41354876842242;

Open in new window

Editors IDEsC

Avatar of undefined
Last Comment
Infinity08

8/22/2022 - Mon