Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!yding From: yding@unix.cis.pitt.edu (Yijun Ding ) Newsgroups: comp.os.msdos.programmer Subject: TC vs mainframe Keywords: tc Message-ID: <127293@unix.cis.pitt.edu> Date: 13 May 91 03:32:21 GMT Organization: Univ. of Pittsburgh, Computing & Information Services Lines: 13 Recently I have a program with small floatings. I find something works on my TC but not on mainframe. The following code, log10() print correctly on TC2.0. It is HUGE on unix, and 0 on VMS in University of Pittsburgh. That is a surprise. #include main() { double a=1.12345e-40; printf("%lf %lf\n", a, log10(a)); } Any one can explain why?