Newsgroups: fj.lang.c
Path: galaxy.trc.rwcp.or.jp!jaist-news!cs.titech!nirvana.cs.titech!wnoc-tyo-news!scslwide!wsgw!wsservra!sakamoto
From: sakamoto@sm.sony.co.jp (Tomohiko Sakamoto)
Subject: MAXDOUBLE in <values.h> or DBL_MAX in <float.h>
Message-ID: <CJ5qDo.EEt@wsservra.sm.sony.co.jp>
Sender: news@wsservra.sm.sony.co.jp (Usenet News System)
Nntp-Posting-Host: sak3
Reply-To: sakamoto@sm.sony.co.jp
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation
Date: Wed, 5 Jan 1994 12:51:24 GMT
Lines: 53
Xref: galaxy.trc.rwcp.or.jp fj.lang.c:1403
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.lang.c&nb=1403&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

$BIbF0>.?tE@?t$NFbItI=8=7A<0$K$OMM!9$J$b$N$,$"$j$^$9$,!":G6a$N%o!<%/%9%F!<(B
$B%7%g%s$d%Q%=%3%s$G$O!"(BIEEE 754 $B5,3J$N$b$N$,A}$($F$-$^$7$?!#(B $B$=$7$F!"(B
double $B$N:GBgCM$H$7$F!"(B<values.h> $B$N(B MAXDOUBLE (ANSI C $B$J$i(B <float.h> $B$N(B
DBL_MAX) $B$,!"(B1.7976931348623157e+308 $B$H(B define $B$5$l$F$$$k$O$:$G$9!#(B

$B$=$3$G!"$3$NCM$NA08e$NCM$,(B C $B$G$I$&07$o$l$k$+$r%F%9%H$7$F$_$^$7$?!#(B

% cat data
1.7976931348623155e+308
1.7976931348623156e+308
1.7976931348623157e+308
1.7976931348623158e+308
1.7976931348623159e+308
1.7976931348623160e+308
% cat a.c
main() {
double d;
while (scanf("%lf", &d) == 1)
printf("%24.16e\n", d);
}
% cc a.c
% a.out <data
 1.7976931348623155e+308
 1.7976931348623155e+308
 1.7976931348623157e+308
 1.7976931348623157e+308
Infinity
Infinity

NEWS-OS 4.2.1 C/R $B$H(B SunOS 4.1.2-JLE1.1.2 $B$G$O!"$3$&$J$j$^$7$?!#(B
$B$H$3$m$,!"(B386BSD $B$G$O!"(B

 1.7976931348623168e+308
 1.7976931348623168e+308
 1.7976931348623168e+308
     Inf
     Inf
     Inf

EWS4800 $B$N(B EWS-UX/V (Rel 4.0) $B$G$O!"$J$s$H(B

  3.4028234663852883e+38
  3.4028234663852883e+38
  3.4028234663852883e+38
  3.4028234663852883e+38
  3.4028234663852883e+38
  3.4028234663852883e+38

$B$H$$$&7k2L$J$j$^$7$?!#(B
$BB>$N%^%7%s$G$O$I$&$J$k$N$G$7$g$&$+!#6=L#?<$$$H$3$m$G$9!#(B

--
$B:dK\CRI'(Bsakamoto@sm.sony.co.jp
