in reply to Re: Number too big to fit in integer
in thread Number too big to fit in integer
Thanks. POSIX::strtol and POSIX::strtoul crossed my mind, too, but there are rather too many caveats for comfort.
It isn't my use case I'm most worried about. It's the expectations of some unknown user. If high and low differ by 1, the user may be expecting to see both of them in a large sample. But if they are huge, floating point precision may collapse them into a single integer value. I'd prefer to issue a fatal message than disappoint.
Looks like Math::BigInt may be the clunky best solution.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Number too big to fit in integer
by NERDVANA (Priest) on Dec 25, 2022 at 05:49 UTC |