"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core.c/Real.pm6" between
rakudo-2020.09.tar.gz and rakudo-2020.10.tar.gz

About: Rakudo is a compiler for the Raku Pogramming Language (formerly known as Perl 6).

Real.pm6  (rakudo-2020.09):Real.pm6  (rakudo-2020.10)
skipping to change at line 61 skipping to change at line 61
method cis() { method cis() {
Complex.new(self.cos, self.sin); Complex.new(self.cos, self.sin);
} }
method Complex() { Complex.new(self.Num, 0e0) } method Complex() { Complex.new(self.Num, 0e0) }
proto method log(|) {*} proto method log(|) {*}
multi method log(Real:D: ) { self.Bridge.log } multi method log(Real:D: ) { self.Bridge.log }
multi method log(Real:D: Real $base) { self.Bridge.log($base.Bridge) } multi method log(Real:D: Real $base) { self.Bridge.log($base.Bridge) }
proto method exp(|) {*} proto method exp(|) {*}
multi method exp(Real:D: ) { self.Bridge.exp } multi method exp(Real:D: ) { self.Bridge.exp }
method truncate(Real:D:) { method truncate(Real:D:) {
self == 0 ?? 0 !! self < 0 ?? self.ceiling !! self.floor self < 0 ?? self.ceiling !! self.floor
} }
method isNaN { Bool::False } method isNaN { Bool::False }
method polymod(Real:D: +@mods) { method polymod(Real:D: +@mods) {
my $more = self; my $more = self;
my $lazy = @mods.is-lazy; my $lazy = @mods.is-lazy;
fail X::OutOfRange.new( fail X::OutOfRange.new(
:what('invocant to polymod'), :got($more), :range<0..Inf> :what('invocant to polymod'), :got($more), :range<0..Inf>
) if $more < 0; ) if $more < 0;
gather { gather {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)