string to double (or float) conversion
- From: "Nilton S. Ramos Quorin" <nilton eletr ufpr br>
- To: gtk-list redhat com
- Subject: string to double (or float) conversion
- Date: Mon, 20 Mar 2000 09:35:56 -0400
Hello,
I'm having trouble to do a string to double conversion. I have the
following simple code which doesn't work:
char *ch;
float f;
ch = "2345.235";
f = strtod (ch,NULL);
I compiled my code with a Glade make. When i compile it with a simple
gcc command, it works.
I tried to set the environment variable LC_ALL to en_US
Is there a gtk function for this special purpose?
Thanks,
Nilton
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]