pi/atan/atan2 (was: Re: s29 diffs)

2006-02-27 Thread Ruud H.G. van Tol
Larry Wall schreef: > +=item pi > + > + constant Num Num::pi = atan(1,1) * 4; > + constant Int Int::pi = 3; > [...] > =item I > [...] > + multi Num::func ( Num $x: :$base = 'radians' --> Num ) > + multi Math::Trig::func ( Num $x = $+_, :$base = 'radians' --> Num ) > > where I is on

round (was: Re: s29 diffs)

2006-02-27 Thread Ruud H.G. van Tol
Larry Wall schreef: > @@ -104,32 +115,34 @@ > =item round > > multi Num::round ( Num $x--> Int ) > + multi Int ( Num $x--> Int ) > > -Returns the nearest integer to $x, away from zero. In other words, > -the absolute value, rounded up. > +Returns the nearest integ