BigInt leading plus sign

Discussion in 'Perl' started by Dave Bazell, Dec 13, 2005.

  1. Dave Bazell

    Dave Bazell Guest

    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
     
    Dave Bazell, Dec 13, 2005
    #1
    1. Advertising

  2. Dave Bazell

    Jim Gibson Guest

    In article <>, Dave Bazell
    <> 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
     
    Jim Gibson, Dec 14, 2005
    #2
    1. Advertising

  3. Dave Bazell

    Dave Bazell Guest

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

    Dave

    "Jim Gibson" <> wrote in message
    news:131220051626223642%...
    > In article <>, Dave Bazell
    > <> 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
     
    Dave Bazell, Dec 14, 2005
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. The LoxFather

    C plus plus vs C Sharp

    The LoxFather, Aug 9, 2003, in forum: C++
    Replies:
    23
    Views:
    9,230
  2. The LoxFather

    C plus plus vs C Sharp

    The LoxFather, Aug 9, 2003, in forum: C Programming
    Replies:
    23
    Views:
    1,397
  3. John Nagle
    Replies:
    4
    Views:
    597
    James Antill
    Aug 7, 2007
  4. Rahul
    Replies:
    9
    Views:
    426
    Andrey Tarasevich
    Mar 25, 2008
  5. furqan shaikh

    c plus plus code comparator

    furqan shaikh, Nov 7, 2008, in forum: C++
    Replies:
    6
    Views:
    821
    red floyd
    Nov 12, 2008
Loading...

Share This Page