Subject: | looks_like_number and scientific notation |
Date: | Wed, 4 Mar 2015 19:22:28 +0100 |
To: | bug-Scalar-List-Utils [...] rt.cpan.org |
From: | Stefan Tauner <stefan.tauner [...] technikum-wien.at> |
Hi,
I tried to make sure what I see is in the current upstream source as
well but I could not locate it fast enough... sorry.
In my perl v5.18.2 installation (Ubuntu 14.04) it seems like
looks_like_number requires at least one digit following the 'e' in
scientific notation although perl "itself" does not:
# perl -E 'use Scalar::Util "looks_like_number"; printf("%d - %d - %d\n", looks_like_number("13e"), looks_like_number("13e0"), "13e");'
0 - 1 - 13
kind regards,
--
Dipl.-Ing. Stefan Tauner
Research and Development
Embedded Systems Department
University of Applied Sciences Technikum Wien
Hoechstaedtplatz 6, 1200 Vienna, Austria
T: +43 1 333 40 77-316
E: stefan.tauner@technikum-wien.at
I: embsys.technikum-wien.at
I: www.technikum-wien.at