BigInt leading plus sign

D

Dave Bazell

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
 
J

Jim Gibson

Dave Bazell said:
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.
 
D

Dave Bazell

Thanks, I was using an old version. Fixed that.

Dave

Jim Gibson said:
Dave Bazell said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top