I was getting wrong values from log()
, so I wrote this program just for testing:
#include <math.h>
#include <stdio.h>
void main()
{
printf ("%1f", log(10));
}
This should print "1", but I get "2.302585"
Why is this and how can I fix it?
I was getting wrong values from log()
, so I wrote this program just for testing:
#include <math.h>
#include <stdio.h>
void main()
{
printf ("%1f", log(10));
}
This should print "1", but I get "2.302585"
Why is this and how can I fix it?