PHP Класс Cassandra\Float

Наследование: implements cassandra\Numeric
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( mixed $value ) Creates a new float.
__toString ( ) : string Returns string representation of the float value.
abs ( ) : cassandra\Numeric
add ( cassandra\Numeric $addend ) : cassandra\Numeric
div ( cassandra\Numeric $divisor ) : cassandra\Numeric
max ( ) : Float Maximum possible Float value
min ( ) : Float Minimum possible Float value
mod ( cassandra\Numeric $divisor ) : cassandra\Numeric
mul ( cassandra\Numeric $multiplier ) : cassandra\Numeric
neg ( ) : cassandra\Numeric
sqrt ( ) : cassandra\Numeric
sub ( cassandra\Numeric $subtrahend ) : cassandra\Numeric
toDouble ( ) : float
toInt ( ) : integer
type ( ) : cassandra\Type The type of this float.
value ( ) : float Returns the float value.

Описание методов

__construct() публичный метод

Creates a new float.
public __construct ( mixed $value )
$value mixed float value as a string, number or Cassandra\Float

__toString() публичный метод

Returns string representation of the float value.
public __toString ( ) : string
Результат string float value

abs() публичный метод

public abs ( ) : cassandra\Numeric
Результат cassandra\Numeric absolute value

add() публичный метод

public add ( cassandra\Numeric $addend ) : cassandra\Numeric
$addend cassandra\Numeric a number to add to this one
Результат cassandra\Numeric sum

div() публичный метод

public div ( cassandra\Numeric $divisor ) : cassandra\Numeric
$divisor cassandra\Numeric a number to divide this one by
Результат cassandra\Numeric quotient

max() публичный статический метод

Maximum possible Float value
public static max ( ) : Float
Результат Float maximum value

min() публичный статический метод

Minimum possible Float value
public static min ( ) : Float
Результат Float minimum value

mod() публичный метод

public mod ( cassandra\Numeric $divisor ) : cassandra\Numeric
$divisor cassandra\Numeric a number to divide this one by
Результат cassandra\Numeric remainder

mul() публичный метод

public mul ( cassandra\Numeric $multiplier ) : cassandra\Numeric
$multiplier cassandra\Numeric a number to multiply this one by
Результат cassandra\Numeric product

neg() публичный метод

public neg ( ) : cassandra\Numeric
Результат cassandra\Numeric negative value

sqrt() публичный метод

public sqrt ( ) : cassandra\Numeric
Результат cassandra\Numeric square root

sub() публичный метод

public sub ( cassandra\Numeric $subtrahend ) : cassandra\Numeric
$subtrahend cassandra\Numeric a number to subtract from this one
Результат cassandra\Numeric difference

toDouble() публичный метод

public toDouble ( ) : float
Результат float this number as float

toInt() публичный метод

public toInt ( ) : integer
Результат integer this number as int

type() публичный метод

The type of this float.
public type ( ) : cassandra\Type
Результат cassandra\Type

value() публичный метод

Returns the float value.
public value ( ) : float
Результат float float value