BigInt leading plus sign

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave Bazell

    BigInt leading plus sign

    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


  • Jim Gibson

    #2
    Re: BigInt leading plus sign

    In article <d7mdnU017Kboqw LeRVn-jg@comcast.com> , Dave Bazell
    <bazell@NOSPAMc omcast.net> wrote:
    [color=blue]
    > I was using Math::BigInt and found that postive integers have a leading plus
    > sign: +12345678900000
    >
    > Is there a way to supress this?[/color]

    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::BigIn t->new("123456789 00000");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 **
    ----------------------------------------------------------
    Best Usenet Service Providers 2025 ranked by Newsgroup Access Newsservers, Usenet Search, Features & Free Trial. Add VPN for privacy.

    Comment

    • Dave Bazell

      #3
      Re: BigInt leading plus sign

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

      Dave

      "Jim Gibson" <jgibson@mail.a rc.nasa.gov> wrote in message
      news:1312200516 26223642%jgibso n@mail.arc.nasa .gov...[color=blue]
      > In article <d7mdnU017Kboqw LeRVn-jg@comcast.com> , Dave Bazell
      > <bazell@NOSPAMc omcast.net> wrote:
      >[color=green]
      > > I was using Math::BigInt and found that postive integers have a leading[/color][/color]
      plus[color=blue][color=green]
      > > sign: +12345678900000
      > >
      > > Is there a way to supress this?[/color]
      >
      > 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::BigIn t->new("123456789 00000");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[/color]


      Comment

      Working...