Login
Login
Communities
Directory
Help
Language
Legal
Search
Communities
Directory
Help
Language
Legal
Search
Visit
Poke
Mike Macgirvin
via
Mike Macgirvin
-34.3671,150.389
,
Sun, 15 Jan 2023 18:31:22 -0800
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 (1 year ago)
Visit
Poke
Bill Statler
Sun, 15 Jan 2023 18:45:58 -0800
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
Visit
Poke
Scott M. Stolz
Sun, 15 Jan 2023 19:02:46 -0800
I'd attempt to test π but only if I didn't have to type it by hand.
Link to source
Visit
Poke
Mike Macgirvin
Sun, 15 Jan 2023 19:07:15 -0800
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 (1 year ago)
Login
Login/Email
Password
Remember me
Login
Register
Password Reset
Remote Authentication