By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,678 Members | 1,329 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,678 IT Pros & Developers. It's quick & easy.

BigInt leading plus sign

P: n/a
I was using Math::BigInt and found that postive integers have a leading plus
sign: +12345678900000

Is there a way to supress this?

Thanks,

Dave
Dec 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
In article <d7********************@comcast.com>, Dave Bazell
<ba****@NOSPAMcomcast.net> wrote:
I was using Math::BigInt and found that postive integers have a leading plus
sign: +12345678900000

Is there a way to supress this?


Can you be more specific? You may have to post some code demonstrating
your problem, as I get no leading plus sign:

Jim 35% perl -MMath::BigInt -e
'$x=Math::BigInt->new("12345678900000");print "$x\n";'
12345678900000

With the following:

Jim 36% perl -MMath::BigInt -e 'print $Math::BigInt::VERSION."\n";'
1.73
Jim 37% perl -v

This is perl, v5.8.6 built for darwin-2level
....

FYI: this newsgroup is defunct. Try comp.lang.perl.misc in the future.

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Dec 14 '05 #2

P: n/a
Thanks, I was using an old version. Fixed that.

Dave

"Jim Gibson" <jg*****@mail.arc.nasa.gov> wrote in message
news:131220051626223642%jg*****@mail.arc.nasa.gov. ..
In article <d7********************@comcast.com>, Dave Bazell
<ba****@NOSPAMcomcast.net> wrote:
I was using Math::BigInt and found that postive integers have a leading plus sign: +12345678900000

Is there a way to supress this?


Can you be more specific? You may have to post some code demonstrating
your problem, as I get no leading plus sign:

Jim 35% perl -MMath::BigInt -e
'$x=Math::BigInt->new("12345678900000");print "$x\n";'
12345678900000

With the following:

Jim 36% perl -MMath::BigInt -e 'print $Math::BigInt::VERSION."\n";'
1.73
Jim 37% perl -v

This is perl, v5.8.6 built for darwin-2level
...

FYI: this newsgroup is defunct. Try comp.lang.perl.misc in the future.

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Dec 14 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.