Newsgroups: fj.os.ms-windows.programming,fj.lang.c
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!newsgate1.web.ad.jp!news.fukuoka.infoweb.or.jp!newshost.ryukyu.ad.jp!sour!merope!void
From: void@merope.opus.or.jp (Kusakabe Youichi)
Subject: Re: =?iso-2022-jp?B?GyRCJS0lYyU5JUgkSyREJCQkRhsoSg==?=
Message-ID: <1997Mar22.125135.4329@merope.opus.or.jp>
Organization: Macintosh User Group PLEIADES in opus
X-Newsreader: TIN [version 1.2 PL0]
References: <332FE181.314C@da2.so-net.or.jp>
Date: Sat, 22 Mar 1997 12:51:35 GMT
Lines: 56
Xref: galaxy.trc.rwcp.or.jp fj.os.ms-windows.programming:121 fj.lang.c:3837
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.lang.c&nb=3837&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.

Yajima Yasuhiko (yyajima@da2.so-net.or.jp) wrote:
: $B$3$N4JC1$J%W%m%0%i%`$G$b!"(Bi=2$B$N;~!J$[$+$N;~$b!KI,$:(B
: "i = 2 double :100.0 int :99"$B$r0UL#$9$kI=<($,$5$l$^$9!#(B

VC++4.1$B$G$b!"(B

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

main()
{
inti;

for (i = 0 ; i < 10; i++) {
printf("i = %d ", i);
printf("double: %lf " pow(10.0, (double)i));
printf("int: %d\n", (int)pow(10.0, (double)i));
}
}
$B$H$$$&%W%m%0%i%`$G(B
i = 0 double: 1.000000 int: 1
i = 1 double: 10.000000 int: 10
i = 2 double: 100.000000 int: 99
i = 3 double: 1000.000000 int: 1000
i = 4 double: 10000.000000 int: 9999
i = 5 double: 100000.000000 int: 100000
i = 6 double: 1000000.000000 int: 1000000
i = 7 double: 10000000.000000 int: 9999999
i = 8 double: 100000000.000000 int: 99999999
i = 9 double: 1000000000.000000 int: 999999999
$B$H=PNO$5$l$^$7$?!#(B
$B$G$b(B -Ox $B$r$D$1$k$H(B
i = 0 double: 1.000000 int: 1
i = 1 double: 10.000000 int: 10
i = 2 double: 100.000000 int: 100
i = 3 double: 1000.000000 int: 1000
i = 4 double: 10000.000000 int: 10000
i = 5 double: 100000.000000 int: 100000
i = 6 double: 1000000.000000 int: 1000000
i = 7 double: 10000000.000000 int: 10000000
i = 8 double: 100000000.000000 int: 100000000
i = 9 double: 1000000000.000000 int: 1000000000
$B$H$J$j$^$7$?!#(B(-Op-$B$O0UL#$,$J$+$C$?(B)

Mark Nelson$B$K%a%$%k$7$F$_$?$i(B?
T$B%7%c%D$r$b$i$($k$+$b$7$l$^$;$s$h(B :-)
(T$B%7%c%D$N%G%6%$%s$O:G6a?7$7$/$J$C$?$=$&$G$9$h!#(B
 $B0JA0$K$b$i$C$?$3$H$,$"$k?M$b%A%c%s%9$G$9$M(B :-)
# $B$G$b$3$l$0$i$$$NLdBj$O4{CN$N$b$N$N$h$&$J5$$,$9$k$J$"!#(B
# $B!V(BANSI$B$G$OL$Dj5A$@$+$i%P%0$G$O$J$$!W$H$+$$$&46$8$G(B (^^)
# ANSI$B$N5,3J=q$O$&$A$K$J$$$N$G!"$=$A$i$GD4$Y$F$_$F$/$@$5$$!#(B

  $B%X(B_$B%X(B   ------------------------
$B%_!&!&(B $B%_(B  void@merope.opus.or.jp
 (  $B!k(B )$B!A(B            $BF|2<ItM[0l(B
----------------------------------
