www.digitalmars.com         C & C++   DMDScript  

c++ - log10l bug

#include <math.h>
#include <stdio.h>

int main(){
printf("log10l(%Lg) = %Lg\n", 3.72308e-393l, log10l(3.72308e-393l));
return 0;
}

The output of the above code compiled with DMC v8.37 is:
log10l(3.72308e-393) = -inf

David
Nov 27 2003