ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl5-porters
perl5-porters
Re: bignum pragma
by Tels other posts by this author
Feb 28 2005 10:36AM messages near this date
Re: [perl #34287] perlfaq6: /m matching beyond the first newline | UTF8 in 5.8.1
-----BEGIN PGP SIGNED MESSAGE-----

Moin,

On Monday 28 February 2005 15:55, Jerrad Pierce wrote:
>  Hi, I was wondering why there wasn't a C<no bignum> pragma? It seems a
>  logical compliment, like C<use integer> and C<no integer>.
> 
>  For instance I'd like to use bignum in conjunction with PDL to insure
>  maximum precision howver then even some of the arguments given to
>  piddle constructors are bignum objects and PDL complains. I can
>  manually add ->numify() but then it's ugly and no longer transparent.

There is a simple reason: It is not implemented yet.

To my astonishment, this actually works:

	perl -le 'print sqrt(123); { use bignum; print sqrt(123); } print 
sqrt(123); '

	11.0905365064094
	11.09053650640941716205160010260993291846
	11.0905365064094

I expected it to output 3 times the longer result. However, I am unsure 
what "no bignum" should do. Just turn of converting "123" into 
Math::BigInt-> new(123), or also add numify() to each MBI object? At which 
place should it do this?

Best wishes,

Tels

- -- 
 Signed on Mon Feb 28 19:34:07 2005 with key 0x93B84C15.
 Visit my photo gallery at http://bloodgate.com/photos/
 PGP key on http://bloodgate.com/tels.asc or per email.

 "Call me Justin, Justin Case."

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iQEVAwUBQiNlOXcLPEOTuEwVAQFSWAf+JseQOPN5qJUsynM3eHR4RflGqbh6WZKW
F7nHm7rnt9/FQif9u16p9pnCiBqyZ5p5h0dCrCPUQ+2yRETlnbZYICqrMwLO2oAX
cJXO+fwOdTaVo0LfmIpixYkn5ZM/veMvSOZpbWEw2vLqZWMrIn/fPi/jLlvZkrqS
Kx+ih/CL8MOorl/gVpTO+dll0csDLxPA9Jph2lLVJudxqL28lnN9y3kW9LYioQre
1+17nMF/Y3X8WUxaSIB/m4pfYfEA+U8MNXrY5Mfb3eu7w5vhpZv+mWNbPoTSV7bw
mzB1usLKaj8BrjufVwSpt6kL04VfW1T7lYqLDfOcs5H3qLlZLvszvQ==
=mp+p
-----END PGP SIGNATURE-----

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved