[1481] in Athena Bugs

home help back first fref pref prev next nref lref last post

C log() problem

daemon@ATHENA.MIT.EDU (mar@ATHENA.MIT.EDU)
Tue Dec 6 16:49:36 1988

From: <mar@ATHENA.MIT.EDU>
Date: Tue, 6 Dec 88 16:47:20 EST
To: tykao@ATHENA.MIT.EDU
Cc: bugs@ATHENA.MIT.EDU
It's a problem in your C code.  Try changing
	sum = log(sum)/log(10);
to
	sum = log(sum)/log(10.0);
since the argument to log is a float, not an integer.
					-Mark

home help back first fref pref prev next nref lref last post