On 9/28/06, imacat <[EMAIL PROTECTED]
> wrote:
On Tue, 26 Sep 2006 11:11:30 -0700
"Bill Ward" < [EMAIL PROTECTED]> wrote:
> I'm unable to reproduce the test failure you had for Number::Format.
> http://www.nntp.perl.org/group/perl.cpan.testers/350947
> Can you run this test script and send me the output?
Dear Bill,
Hi. This is imacat from Taiawn. Regarding to your question, I
guess the log below should be helpful. It seems to be related to
long-double floating numbers, whose decimal digits are too small to be
displayed but is still there. The architecture code of my perl is
"x86_64-linux-thread-multi-ld". The tailing "-ld" means "long double".
It's not specific to x86_64, but to whichever perl compiled with long
double support.
Please tell me if there is still any question.
[EMAIL PROTECTED] ~ % cat /tmp/test.pl
#! /usr/bin/perl -w
use lib qw(/tmp/Number-Format-1.52/blib/lib);
use Number::Format qw(round);
print "round(123456.78951, -2) = " . round(123456.78951, -2) . "\n";
print "round(123456.78951, -2) - 123500 = "
. (round(123456.78951, -2) - 123500) . "\n";
[EMAIL PROTECTED] ~ % /tmp/test.pl
round(123456.78951, -2) = 123500
round(123456.78951, -2) - 123500 = -7.10542735760100186e-15
[EMAIL PROTECTED] ~ %
--
Best regards,
imacat ^_*' <[EMAIL PROTECTED]>
PGP Key: http://www.imacat.idv.tw/me/pgpkey.txt
<<Woman's Voice>> News: http://www.wov.idv.tw/
Tavern IMACAT's: http://www.imacat.idv.tw/
TLUG List Manager: http://lists.linux.org.tw/cgi-bin/mailman/listinfo/tlug
--
Help bring back the San Jose Earthquakes - http://www.soccersiliconvalley.com/
