in reply to wrong record type?

It looks like you are using Windows, and I'm guessing ActiveState, which I believe was compiled 32-bit, so your maximum integer is 2**32, which is less than the value in $TotalNumberOfFreeBytes

You probably need to use Math::BigInt or pursue another design path.

Replies are listed 'Best First'.
forgot to mention...
by cebrown (Pilgrim) on Aug 23, 2002 at 23:08 UTC
    ...I think the first time you're referring to $TotalNumberOfFreeBytes, Perl is treating it as a string, so it'll print the way you want; it's once you start doing math on it that things get funky.
Re: Is 17298208768 "too big"?
by jhgrizz (Novice) on Aug 23, 2002 at 23:21 UTC
    Yes, it's too big. I want to convert it to mb. I did not have this problem before I added my code to someone else's programs. I would like to limit it down to 5 digits.
Re: Is 17298208768 "too big"?
by jhgrizz (Novice) on Aug 23, 2002 at 23:33 UTC
    Thanks for your help. Math:BigInt took care of the problem. Thanks to you all