Scott M. Stolz
Login
Scott M. Stolz
Login
System Apps
Directory
Help
Language
Random Channel
Report Bug
Search
Sun, 15 Jan 2023 21:31:22 -0500
View Profile
Mike Macgirvin
mike@macgirvin.com
So you're telling me this function has been in PHP for 20 years? Can't wait to find a use for it.
Oh wait - that means I'll have to **test** it.
Link to Source
PHP manual page for is_infinite function
1 Like
Scott M. Stolz
Sun, 15 Jan 2023 21:45:58 -0500
View Profile
Bill Statler
billstatler@forum.statler.ws
Huh. Apparently it's for testing user input (along with is_finite and is_nan).
https://www.functions-online.com/is_infinite.html
8146949640E+6918468416246824 is infinite (for certain values of infinity).
Link to Source
Sun, 15 Jan 2023 22:02:46 -0500
View Profile
Scott M. Stolz
scott@authorship.studio
I'd attempt to test π but only if I didn't have to type it by hand.
Link to Source
Sun, 15 Jan 2023 22:07:15 -0500
View Profile
Mike Macgirvin
mike@macgirvin.com
> or any value too big to fit into a float on this platform.
They should've just named it too_big_for_platform() . Is_infinite() returning true on a finite number is a bug where I come from.
Link to Source
1 Like
Scott M. Stolz
Conversation Features
Loading...
Conversation Features
Loading...
Login
Email or nickname
Password
Remember me
Login
Register
Password Reset
Remote Authentication