Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: is_infinite - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

is_nan" width="11" height="7"/> <is_finite
Last updated: Thu, 03 May 2007

view this page in

is_infinite

(PHP 4 >= 4.2.0, PHP 5)

is_infinite — 値が無限大であるかどうかを判定する

説明

bool is_infinite ( float $val )

val が(正または負の)無限大である場合に TRUE を返します。たとえば log(0) の結果、 あるいはこのプラットフォーム上で扱える float の範囲を超えた数などが あてはまります。

パラメータ

val

調べる値。

返り値

val が無限大である場合に TRUE、 そうでない場合に FALSE を返します。

参考

is_finite()
is_nan()



add a note add a note User Contributed Notes
is_infinite
22-Aug-2006 12:54
@ david,

That will return true for any string ending with "INF".
I think substr("$value",0,3) would be more appropriate.
david(@t)nirvanis(d@t)org
31-Aug-2004 06:49
If you have PHP lower than 4.2 you can simulate the behaviour:

function is_infinite($value) {
   return (substr("$value",-3) == "INF");
}

(tested on php 4.1.2)

is_nan" width="11" height="7"/> <is_finite
Last updated: Thu, 03 May 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites