Hi everyone,<br><br>I am tying to use the "stdtod" that takes the first part of a string and makes it into a number (until it comes to a non-numeric character). I keep getting zero, no matter what the string is. here's my code:<br><br> <br>#include <stdio.h><br>#include <stdlib.h><br>#include <string.h><br><br>void main() {<br><br> char input[] = "23", *pEnd;<br> double number = 0.0;<br><br>// gets(input);<br> number = strtod(input, (char **)NULL);<br>// number = atof(input);<br> <br> printf("The input is %s\n", input);<br> printf("The number is %d", number);<br>}<br><br>//END OF CODE<br><br>As you can see, I've also tried the "atof" function but that did not help either. Can anyone help me fix this code?<br><br>Thanks,<br><br>Rio