🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.lang.misc
Article #224

Re: $B>jM>$K$D$$$F(B

#224
From: Kaoru MAEDA
Date: Mon, 16 Mar 1998 00:00
36 lines
2210 bytes
$BA0ED(B@$B%j%3!<$G$9!#(B

> h-satoh@rd.njk.co.jp (Hiroyuki Satoh) writes:
>> $B!t(B $B<j85$K$"$k%P!<%8%g%s$N(Bjparl $B$G$O!"(B
>> $B!t(B      -5 / +2 $B$O(B -2,  -5 % +2 $B$O(B +1 
>> $B!t(B      +5 / -2 $B$O(B -2,  +5 % -2 $B$O(B +5 $B$K$J$C$A$c$$$^$9!#(B
>> $B!t(B $B$3$l$OOC$K$J$j$^$;$s$M!#@)8B;EMM!)%P%0!)(B

>>>>> In article <pypiupisr63.fsf@tp560e.sowa.is.uec.ac.jp>,
>>>>> 	MAEDA Atusi <maeda@is.uec.ac.jp> writes:

> Perl$B$K$O$A$c$s$H$7$?;EMM$,$J$$(B($B;EMM(B = $B<BAu(B)$B$N$G?dB,$9$k$7$+$"$j$^$;$s(B
> $B$,!"=|?t!&Ho=|?t$N$I$A$i$+$,Ii$@$H>jM>$O$^$C$?$/ITDj$J$N$+$b!#$D$^$j!"(B
> $B=|K!DjM}$,@.$jN)$DHO0O$G$7$+;H$C$F$O$$$1$J$$$H$+(B???

Perl5.004$B$G5,Dj(B?$B$5$l$?(B(regulate$B$5$l$?(B)$B$h$&$G$9!#(B

man perlop$B$h$j(B:
|     Binary "%" computes the modulus of two numbers.  Given
|     integer operands $a and $b: If $b is positive, then $a % $b
|     is $a minus the largest multiple of $b that is not greater
|     than $a.  If $b is negative, then $a % $b is $a minus the
|     smallest multiple of $b that is not less than $a (i.e. the
|     result will be less than or equal to zero).

arith.t$B$h$j(B:
|try 1,  13 %  4 ==  1;
|try 2, -13 %  4 ==  3;
|try 3,  13 % -4 == -3;
|try 4, -13 % -4 == -1;

-------------------------------  MadCat        LRM15   $B""(B/$B!1(B\$B""(B   LRM15
 $BA0ED(B $B70(B maeda@src.ricoh.co.jp   75t 175km/h     LG+  o"$B!C(B  $B!C(B"o  AFC100
 ($B3t(B)$B%j%3!<(B $B%=%U%H%&%'%"8&5f=j(B   HeatSink 14     Sm+   .=X$B!1(BX=.   Sm+
-------------------------------  Armor 2025           _|_    _|_
Technical Details
Message-ID: <MAEDA.98Mar16120755@clksv.src.ricoh.co.jp>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6eb19n$lv3$1@sunny.njk.co.jp> <pypiupisr63.fsf@tp560e.sowa.is.uec.ac.jp>

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: 10b195,716a868b8fc068f4
X-Google-Attributes: gid10b195,public
X-Google-Thread: 1043e7,d5b2ffa89f827a1d,start
X-Google-Attributes: gid1043e7,public
From: maeda@src.ricoh.co.jp (Kaoru MAEDA)
Subject: Re: $B>jM>$K$D$$$F(B
Date: 1998/03/16
Message-ID: <MAEDA.98Mar16120755@clksv.src.ricoh.co.jp>
X-Deja-AN: 334421751
References: <6eb19n$lv3$1@sunny.njk.co.jp> <pypiupisr63.fsf@tp560e.sowa.is.uec.ac.jp>
Organization: RICOH Software Research Center, Tokyo
Newsgroups: fj.lang.misc,fj.lang.perl