atoi()
Syntax:
#include
int atoi( const char *str );
Description:
The atoi() function converts str into an integer, and returns that integer. str should start with some sort of number, and atoi() will stop reading from str as soon as a non-numerical character has been read.
Example:
i = atoi( "512.035" );
RESULT: i set to 512.
atof()
Syntax:
#include
double atof( const char *str );
Description:
The function atof() converts str into a double, then returns that value. str must start with a valid number, but can be terminated with any non-numerical character, other than "E" or "e".
Example:
x = atof( "42.0is_the_answer" );Source: http://www.elook.org/programming/c/atof.html
RESULT: x set to 42.0
No need to learn complicated matrix operations like those involve in finding solutions to linear equations. You just have to know the Basic Matrix and Row operations.
Good luck!
No comments:
Post a Comment