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

looks_like_number (was Re: SvOOK_on)

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
November 28, 2000 01:27
Subject:
looks_like_number (was Re: SvOOK_on)
Message ID:
200011280926.JAA20225@mikado.tiuk.ti.com
Nicholas Clark <nick@ccl4.org> 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 <nik@tiuk.ti.com>
Via, but not speaking for: Texas Instruments Ltd.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About