in reply to Re^2: How to determine whether a number has a decimal component?
in thread How to determine whether a number has a decimal component?

Shouldn't one use bignum either ways when going over 32 bit?
  • Comment on Re^3: How to determine whether a number has a decimal component?

Replies are listed 'Best First'.
Re^4: How to determine whether a number has a decimal component?
by ikegami (Patriarch) on Jan 04, 2009 at 22:20 UTC

    Depends. It's a cost-benefit tradeoff. If the use of floats is appropriate, 53 bits of precision is probably way more than enough.

    By the way, Perl natively supports (without loss of precision) integer numbers (as in numbers without a fractional component) up to 2**53 (or higher depending on platform and build options), not 2**32-1.