Overview

Namespaces

  • esperecyan
    • webidl
      • lib

Classes

  • BooleanType
  • DictionaryType
  • FloatType
  • IntegerType
  • NullableType
  • ObjectType
  • SequenceType
  • StringType
  • Type
  • UnionType

Traits

  • Error
  • Overview
  • Namespace
  • Class
  • Tree

Class FloatType

esperecyan\webidl\lib\FloatType uses esperecyan\webidl\lib\Utility (not available)
Namespace: esperecyan\webidl\lib
Internal
Located at lib/FloatType.php
Methods summary
public static boolean
# isFloatCastable( mixed $value )

与えられた値が浮動小数点型に変換可能であれば真を返します。

与えられた値が浮動小数点型に変換可能であれば真を返します。

次の型の値が浮動小数点型に変換可能であるとみなされます。 論理型。整数型。浮動小数点型。文字列型。リソース型。オブジェクト型のうち、GMPのインスタンス。

Parameters

$value

Returns

boolean
public static string
# toFloat( boolean|integer|float|string|resource|GMP $value )

toDouble() のエイリアスです。

toDouble() のエイリアスです。

Deprecated

1.1.0 double should be used rather than float.

Parameters

$value

Returns

string

Link

WebIDL Level 1
public static string
# toUnrestrictedFloat( boolean|integer|float|string|resource|GMP $value )

toUnrestrictedDouble() のエイリアスです。

toUnrestrictedDouble() のエイリアスです。

Deprecated

1.1.0 double should be used rather than float.

Parameters

$value

Returns

string

Link

WebIDL Level 1
public static float
# toDouble( boolean|integer|float|string|resource|GMP $value )

与えられた値を、NAN、INFを含まない浮動小数点型に変換して返します。

与えられた値を、NAN、INFを含まない浮動小数点型に変換して返します。

Parameters

$value

Returns

float

Throws

InvalidArgumentException
配列、NULL が与えられた場合。または、GMP 以外のオブジェクトが与えられた場合。
DomainException
変換後の値が、NAN、INF、-INF のいずれかになった場合。

Link

WebIDL Level 1
public static float
# toUnrestrictedDouble( boolean|integer|float|string|resource|GMP $value )

与えられた値を、浮動小数点型に変換して返します。

与えられた値を、浮動小数点型に変換して返します。

Parameters

$value

Returns

float

Throws

InvalidArgumentException
配列、NULL が与えられた場合。または、GMP 以外のオブジェクトが与えられた場合。

Link

WebIDL Level 1
esperecyan/webidl documentation API documentation generated by ApiGen