develooper Front page | perl.perl5.porters | Postings from November 2000

looks_like_number (was Re: SvOOK_on)

Thread Previous | Thread Next
Nick Ing-Simmons
November 28, 2000 01:27
looks_like_number (was Re: SvOOK_on)
Message ID:
Nicholas Clark <> writes:
>I can't think any situation where (int)atof() would give you an answer
>better than atol() for a number matching /[-+]?[0-9]+/

It does if number does not fit in an integer. 

Nick Ing-Simmons <>
Via, but not speaking for: Texas Instruments Ltd.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About