Adam Warner <[EMAIL PROTECTED]> wrote:
> I've taken a first look at Parrot and I'm very impressed. I'd like to
> perform some micro-benchmarking of double floating point code. I have the
> latest CVS version of parrot. I've compiled it upon Debian unstable x86
> with the:
> 
>    perl Configure.pl --floatval=double
> 
> option. Yet the Leibniz summation for PI <http://www.parrotcode.org/examples/>
> still appears to be performing its calculations using single floats and
> continues to print 3.141591.

Parrot usually uses double as its floating-point type.  The problem is
probably with the precision of 'print N0'; try using the 'sprintf'
opcode and printing the resulting string instead.

-- 
Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker

There is no cabal.

Reply via email to