Method | Description | |
---|---|---|
__construct ( string $value ) | Creates a decimal from a given decimal string: | |
__toString ( ) : string | String representation of this decimal. | |
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 | ||
scale ( ) : integer | Scale of this decimal as int. | |
sqrt ( ) : cassandra\Numeric | ||
sub ( cassandra\Numeric $subtrahend ) : cassandra\Numeric | ||
toDouble ( ) : float | ||
toInt ( ) : integer | ||
type ( ) : cassandra\Type | The type of this decimal. | |
value ( ) : string | Numeric value of this decimal as string. |
public __construct ( string $value ) | ||
$value | string | Any decimal string |
public __toString ( ) : string | ||
return | string | Decimal value |
public add ( cassandra\Numeric $addend ) : cassandra\Numeric | ||
$addend | cassandra\Numeric | a number to add to this one |
return | cassandra\Numeric | sum |
public div ( cassandra\Numeric $divisor ) : cassandra\Numeric | ||
$divisor | cassandra\Numeric | a number to divide this one by |
return | cassandra\Numeric | quotient |
public mod ( cassandra\Numeric $divisor ) : cassandra\Numeric | ||
$divisor | cassandra\Numeric | a number to divide this one by |
return | cassandra\Numeric | remainder |
public mul ( cassandra\Numeric $multiplier ) : cassandra\Numeric | ||
$multiplier | cassandra\Numeric | a number to multiply this one by |
return | cassandra\Numeric | product |
public sub ( cassandra\Numeric $subtrahend ) : cassandra\Numeric | ||
$subtrahend | cassandra\Numeric | a number to subtract from this one |
return | cassandra\Numeric | difference |
public type ( ) : cassandra\Type | ||
return | cassandra\Type |