perl5 icon indicating copy to clipboard operation
perl5 copied to clipboard

Document the behaviour of int("NaN")

Open choroba opened this issue 1 year ago • 5 comments

There are still people surprised by it, e.g. https://www.perlmonks.org/?node_id=11159579

choroba avatar May 21 '24 09:05 choroba

The change here seems to be trying to document two issues at the same time.

It's documenting that "Info" gets numified into inf, but this has little to do with int. It's also documenting that int(inf) still produces an inf. That seems like the relevant thing to be focusing on here. I feel like using int("Info") rather than int("Inf") makes the docs more confusing.

haarg avatar May 23 '24 14:05 haarg

Ok, removed the "o" in "Info". Another fixup.

choroba avatar May 23 '24 14:05 choroba

All that is left is s/Info/Inf/ That is fine with me, but I think the commit message should reflect the actual change

khwilliamson avatar Aug 26 '24 23:08 khwilliamson

Commit message updated, commits squashed, and rebased on blead.

choroba avatar Aug 27 '24 08:08 choroba

@haarg, @khwilliamson ... is this good to merge now?

jkeenan avatar Aug 27 '24 19:08 jkeenan