develooper Front page | perl.perl6.internals | Postings from September 2005

[perl #31980] Factorial example gives incorrect result

Thread Next
From:
Bernhard Schmalhofer via RT
Date:
September 8, 2005 13:43
Subject:
[perl #31980] Factorial example gives incorrect result
Message ID:
rt-3.0.11-31980-120476.15.2959195072931@perl.org
> [james@ghofulpo.com - Di 19. Okt 2004, 19:49:44]:

> Is it the intended operation of the 'factorial' program on the Parrot
> examples page to
> truncate the results?  Looks like a bug to me...

I have checked the factorial example on
http://www.parrotcode.org/examples/pasm.html.

Starting with 13! incorrect results are indeed returned on my 32bit
Linux machine.
Should there a promotion to BigInt be taking place? on an overflow
indication?

-- 
/* Bernhard.Schmalhofer@gmx.de */

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