develooper Front page | perl.perl6.users | Postings from October 2016

log base zero ???

Thread Next
From:
grizzly
Date:
October 20, 2016 02:55
Subject:
log base zero ???
Message ID:
3785275d-d1c1-d943-71d0-31b186164d2d@smit.id.au
I think I've found a bug some how there is no power that you can raise 0 
to and get 23 or any number, except 0


$ perl6 -e "say log(23, 0);"
-0


shouldn't it be NaN


$ perl6 --version
This is Rakudo version 2016.10-17-g200364a built on MoarVM version 
2016.10-15-g715e39a
implementing Perl 6.c.


-- 

    .~.     In my life God comes first....
    /V\         but Linux is pretty high after that :-D
   /( )\    Francis (Grizzly) Smit
   ^^-^^    http://www.smit.id.au/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GM/CS/H/P/S/IT/L d- s+:+ a++ C++++ UL++++$ P+++ L+++$ E--- W+++
N w--- M-- V-- PE- PGP t+ 5-- X-- R- tv b++++ DI(+) D-
G e++ h+ y? r% z---
------END GEEK CODE BLOCK------
http://www.geekcode.com/


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About