public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cygwin Perl and Module Math::BigInt
@ 2001-11-11  8:26 Tels
  0 siblings, 0 replies; 6+ messages in thread
From: Tels @ 2001-11-11  8:26 UTC (permalink / raw)
  To: tphan; +Cc: cygwin

-----BEGIN PGP SIGNED MESSAGE-----

Moin,

[sorry for the late reply, I don't read this list]

"T.Phan" <tphan at iqrinc dot com> wrote on Fri, 10 Aug 2001 15:38:11 -0500:

>Hi, 
>  I tried to 'make test' on the the Convert:ASN1 and it kept fail at
>  place where the Math::BigInt always returns NaN.
>
>  I cut out the segment below and ran it and sure enough, it return
>  NaN in Cygwin Perl.  However, the same script return a number in
>  ActiveState Perl:
>
>#--------------------------
>use strict;
>use Math::BigInt;
>
>my $num = Math::BigInt->new(-1 * (1<<24) * (1<<24));
>
>print "$num\n";
>
>exit;
>
>#----- Cygwin perl returns:  NaN
>
>#----- ActiveState perl returns :  -281474976710656
>
> Any idea how to fix this in Cygwin?  Thank in advance!

The scalar probably overflowed and returned "NaN" so that BigInt also
produced a "NaN".

On my Linux 32 bit box it produces the same number than Activestate.

What version of Bigint do you have? And what does Perl print without the
bigInt->new() around the expression?

Thanx in advance,


Tels

- --
 "Why do you go so slowly? Do you think this is some kind of game?"
 PGP key available on http://bloodgate.com/tels.asc or via email.
 perl -MDev::Bollocks -e'print Dev::Bollocks->rand(),"\n"'
 proactively transform compelling infrastructures



-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: latin1

iQEVAwUBO/K5L3cLPEOTuEwVAQHrOQf+M4IVe+GTJ4BaIFN2AEWPtG6C7ep814hg
EDfkP7pCijRudhpW4WCWhdpmKaDHwYS7bmGj9jhK/LpawlRUR9qd0zvsiJFjZdD6
baLCRjzzPszwWKZNh3FQbEpcaj512mlucJaa26orJaNaoBrTsqwOGAS2J3aa80hK
OChtyPOV9+pLrWqP53MJUiOeYuaBqjxEvuB6abIanA4RFUmknKT/X1SpihkUVS81
dAK9YOwLRr7pO5No7gafMkIyfSLsF7Ywc4DW7N4idytargEX/IVTXz6jKxbjn/jx
vWKwniZWRAGz5kUu0L5YYj96Fq7VrQK+XIN/PtRcdllca7Kkjv0Msw==
=dySO
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: Cygwin Perl and Module Math::BigInt
@ 2001-11-11  8:26 Heribert Dahms
  0 siblings, 0 replies; 6+ messages in thread
From: Heribert Dahms @ 2001-11-11  8:26 UTC (permalink / raw)
  To: 'Tels', tphan; +Cc: cygwin

Hi Tels,

I don't speak Perl, but in C that would overflow the temporary
expression calculated before it is passed as an argument to new()!
Try: my $num = Math::BigInt->new(-1 * (1<<24)) * Math::BigInt->new(1<<24);

Bye, Heribert (heribert_dahms@icon-scm.com)

> -----Original Message-----
> From:	Tels [SMTP:perl_dummy@bloodgate.com]
> Sent:	Wednesday, November 14, 2001 19:35
> To:	tphan@iqrinc.com
> Cc:	cygwin@cygwin.com
> Subject:	Cygwin Perl and Module Math::BigInt
> 
	[Heribert]  [snip]

> >my $num = Math::BigInt->new(-1 * (1<<24) * (1<<24));
> 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: Perl modules
@ 2001-08-06  9:03 Timothy C. Phan
  2001-08-10 13:41 ` Cygwin Perl and Module Math::BigInt T.Phan
  0 siblings, 1 reply; 6+ messages in thread
From: Timothy C. Phan @ 2001-08-06  9:03 UTC (permalink / raw)
  To: cygwin

Hi Neil,

  Thank for the info.  I did built the DBI and it compiled ok with
  a lot of warning.  I think it also fail a few case of test.

  I also build the DBD::Mysql. This however require a copied of
  the libmysqlclient.a which I also have to build from the
  Mysql distribution.  The original Mysql .dll from it windows/nt
  distribution did not work under the Cygwin environment.

  I just tried out the Cygwin Perl and want to compare it with
  ActiveState Perl.  Has there been any comparison between the
  two?  ActiveState Perl has a very good Perl Package Management
  utility. Thus, this prompted me to ask this group to see if
  such thing existed in Cygwin Perl :)

  BTW, how do I get on the cygwin perl dbi mailing list?

  Thanks!

-----Original Message-----
From: Neil Lunn [ mailto:neillunn@gunz.com.au ]
Sent: Monday, August 06, 2001 12:53 AM
To: 'Timothy C. Phan'; cygwin@cygwin.com
Subject: RE: Perl modules



>-----Original Message-----
>From: Timothy C. Phan [ mailto:tphan@iqrinc.com ]
>Sent: Monday, August 06, 2001 2:07 PM
>To: cygwin@cygwin.com
>Subject: Perl modules
>
>
>Hi,
>
>  Is there any pre-build perl modules for the perl in
>  Cygwin?  Particularly DBD::Mysql, DBD::ODBC.

No need for them to be pre-built. Get them from CPAN. Have a look at the DBI
mail list archives or these mail archives for any further information.
There'll also probably be a new patch on DBD:ODBC in the next few days.

--Neil.

>
>  THanks!
>
>---
>tcp
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/
>

__________________________________________________________________________
Please Note :
Only  the intended recipient is authorised to access or use this e-mail.
If you are not the intended recipient, please delete this e-mail and notify
the sender immediately. The contents of this e-mail are the writer's
opinion and are not necessarily endorsed by the Gunz Companies
unless expressly stated.

We use virus scanning software but exclude all liability for viruses or
similar in any attachment.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-11-15 16:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <KLN303589B45@koeln.convey.de>
2001-11-11  8:26 ` Cygwin Perl and Module Math::BigInt Gerrit P. Haase
2001-11-11  8:26   ` Tels
2001-11-11  8:26   ` Tels
2001-11-11  8:26 Tels
  -- strict thread matches above, loose matches on Subject: below --
2001-11-11  8:26 Heribert Dahms
2001-08-06  9:03 Perl modules Timothy C. Phan
2001-08-10 13:41 ` Cygwin Perl and Module Math::BigInt T.Phan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).