rastkocvetkovic
Programmer
My script looks like simply this:
char string[100], *pointerToString;
pointerToString = string;
string = "124.35";
float myFloat;
myFloat = atof(string);
That doesn't work, I don't know why. I have tried to include all the libraries I could imagine, and still nothing. What could be the problem?
And now, vice versa:
I want to output a float to a file, therefore float should be transformed to string. How could I do that?
I'll be very glad of any help. Thanks!
char string[100], *pointerToString;
pointerToString = string;
string = "124.35";
float myFloat;
myFloat = atof(string);
That doesn't work, I don't know why. I have tried to include all the libraries I could imagine, and still nothing. What could be the problem?
And now, vice versa:
I want to output a float to a file, therefore float should be transformed to string. How could I do that?
I'll be very glad of any help. Thanks!