PHP Interface Cassandra\Numeric

See also: Bigint
See also: Decimal
See also: Float
See also: Varint
Show file Open project: datastax/php-driver

Public Methods

Method Description
abs ( ) : cassandra\Numeric
add ( cassandra\Numeric $addend ) : cassandra\Numeric
div ( cassandra\Numeric $divisor ) : cassandra\Numeric
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

Method Details

abs() public method

public abs ( ) : cassandra\Numeric
return cassandra\Numeric absolute value

add() public method

public add ( cassandra\Numeric $addend ) : cassandra\Numeric
$addend cassandra\Numeric a number to add to this one
return cassandra\Numeric sum

div() public method

public div ( cassandra\Numeric $divisor ) : cassandra\Numeric
$divisor cassandra\Numeric a number to divide this one by
return cassandra\Numeric quotient

mod() public method

public mod ( cassandra\Numeric $divisor ) : cassandra\Numeric
$divisor cassandra\Numeric a number to divide this one by
return cassandra\Numeric remainder

mul() public method

public mul ( cassandra\Numeric $multiplier ) : cassandra\Numeric
$multiplier cassandra\Numeric a number to multiply this one by
return cassandra\Numeric product

neg() public method

public neg ( ) : cassandra\Numeric
return cassandra\Numeric negative value

sqrt() public method

public sqrt ( ) : cassandra\Numeric
return cassandra\Numeric square root

sub() public method

public sub ( cassandra\Numeric $subtrahend ) : cassandra\Numeric
$subtrahend cassandra\Numeric a number to subtract from this one
return cassandra\Numeric difference

toDouble() public method

public toDouble ( ) : float
return float this number as float

toInt() public method

public toInt ( ) : integer
return integer this number as int