final class Float_ implements Value, Numeric (View source)

A PHP representation of the CQL float datatype

Methods

__construct(float|int|string|Float_ $value)

Creates a new float.

static Float_
min()

Minimum possible Float value

static Float_
max()

Maximum possible Float value

string
__toString()

Returns string representation of the float value.

type()

The type of this float.

float
value()

Returns the float value.

bool
isInfinite()

No description

bool
isFinite()

No description

bool
isNaN()

No description

add(Numeric $num)

No description

sub(Numeric $num)

No description

mul(Numeric $num)

No description

div(Numeric $num)

No description

mod(Numeric $num)

No description

abs()

No description

neg()

No description

sqrt()

No description

int
toInt()

No description

float
toDouble()

No description

Details

__construct(float|int|string|Float_ $value)

Creates a new float.

Parameters

float|int|string|Float_ $value

A float value as a string, number or Float

static Float_ min()

Minimum possible Float value

Return Value

Float_

minimum value

static Float_ max()

Maximum possible Float value

Return Value

Float_

maximum value

string __toString()

Returns string representation of the float value.

Return Value

string

float value

Type type()

The type of this float.

Return Value

Type

float value()

Returns the float value.

Return Value

float

float value

bool isInfinite()

No description

Return Value

bool

bool isFinite()

No description

Return Value

bool

bool isNaN()

No description

Return Value

bool

Numeric add(Numeric $num)

No description

Parameters

Numeric $num

a number to add to this one

Return Value

Numeric sum

Numeric sub(Numeric $num)

No description

Parameters

Numeric $num

a number to subtract from this one

Return Value

Numeric difference

Numeric mul(Numeric $num)

No description

Parameters

Numeric $num

a number to multiply this one by

Return Value

Numeric product

Numeric div(Numeric $num)

No description

Parameters

Numeric $num

a number to divide this one by

Return Value

Numeric quotient

Numeric mod(Numeric $num)

No description

Parameters

Numeric $num

a number to divide this one by

Return Value

Numeric remainder

Numeric abs()

No description

Return Value

Numeric

absolute value

Numeric neg()

No description

Return Value

Numeric

negative value

Numeric sqrt()

No description

Return Value

Numeric

square root

int toInt()

No description

Return Value

int

this number as int

float toDouble()

No description

Return Value

float

this number as float