Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
Compare, two identical numbers are not the same?!
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Jürgen Exner, post: 4866979"] If that were the case then he should have gotten a warning about non-numerical value used in numerical comparison. At least if he had used warnings. Technically it doesn't matter. He is using numerical compare "=", thus Perl uses the arguments in numerical context and therefore automatically converts the string "42.6\n" into the numerical floating point value 42.6 resp. something very close to it. jue [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
Compare, two identical numbers are not the same?!
Top