Skip to content

Conversation

@lacatoire
Copy link
Contributor

This PR clarifies how intval() behaves when passed numeric strings using scientific notation.

While this behavior is documented in the Numeric strings section, it was not explicitly referenced from the intval() manual page,
which could lead to confusion.

A short note and example have been added to make this behavior easier to discover.

Issue: #5019

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Outside markup nits, LGTM.

@lacatoire lacatoire requested a review from Girgias January 14, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

intval returns unxpected result for string with "." and "e" which is not documented.

2 participants