in reply to Re: Misunderstanding with Math::BigInt
in thread Misunderstanding with Math::BigInt

thanks a lot !!! it works perfectly.
but is there a way to get only the whole number (without what after the dot) ? i tried int() but it rounds the whole number somewhy...
  • Comment on Re^2: Misunderstanding with Math::BigInt

Replies are listed 'Best First'.
Re^3: Misunderstanding with Math::BigInt
by BrowserUk (Patriarch) on Jun 30, 2005 at 21:31 UTC

    Here's one way:

    print +( split '\.', $out ** ( 1/$grade ) * $diver )[ 0 ];

    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.
      thank you soooooo very much :D
Re^3: Misunderstanding with Math::BigInt
by Anonymous Monk on Jun 30, 2005 at 21:35 UTC