Represents a numeric value.
- Author
- Frederik Bosch f.bos.nosp@m.ch@g.nosp@m.enkgo.nosp@m..nl
Definition at line 10 of file Number.php.
◆ __construct()
Money\Number::__construct |
( |
|
$integerPart, |
|
|
|
$fractionalPart = '' |
|
) |
| |
- Parameters
-
string | $integerPart | |
string | $fractionalPart | |
Definition at line 37 of file Number.php.
◆ __toString()
Money\Number::__toString |
( |
| ) |
|
◆ base10()
Money\Number::base10 |
( |
|
$number | ) |
|
- Parameters
-
- Returns
- self
Definition at line 200 of file Number.php.
◆ fromFloat()
static Money\Number::fromFloat |
( |
|
$number | ) |
|
|
static |
- Parameters
-
- Returns
- self
Definition at line 70 of file Number.php.
◆ fromNumber()
static Money\Number::fromNumber |
( |
|
$number | ) |
|
|
static |
- Parameters
-
float | int | string | $number | |
- Returns
- self
Definition at line 84 of file Number.php.
Referenced by Money\Calculator\BcMathCalculator\ceil(), Money\Calculator\GmpCalculator\ceil(), Money\Calculator\GmpCalculator\compare(), Money\Calculator\PhpCalculator\divide(), Money\Calculator\BcMathCalculator\divide(), Money\Calculator\GmpCalculator\divide(), Money\Money\divide(), Money\Calculator\BcMathCalculator\floor(), Money\Calculator\GmpCalculator\floor(), Money\Calculator\GmpCalculator\mod(), Money\Calculator\PhpCalculator\multiply(), Money\Calculator\BcMathCalculator\multiply(), Money\Calculator\GmpCalculator\multiply(), Money\Calculator\PhpCalculator\round(), Money\Calculator\BcMathCalculator\round(), and Money\Calculator\GmpCalculator\round().
◆ fromString()
static Money\Number::fromString |
( |
|
$number | ) |
|
|
static |
◆ getFractionalPart()
Money\Number::getFractionalPart |
( |
| ) |
|
◆ getIntegerPart()
Money\Number::getIntegerPart |
( |
| ) |
|
◆ getIntegerRoundingMultiplier()
Money\Number::getIntegerRoundingMultiplier |
( |
| ) |
|
◆ isCloserToNext()
Money\Number::isCloserToNext |
( |
| ) |
|
◆ isCurrentEven()
Money\Number::isCurrentEven |
( |
| ) |
|
◆ isDecimal()
Money\Number::isDecimal |
( |
| ) |
|
◆ isHalf()
◆ isInteger()
Money\Number::isInteger |
( |
| ) |
|
◆ isNegative()
Money\Number::isNegative |
( |
| ) |
|
◆ roundMoneyValue()
static Money\Number::roundMoneyValue |
( |
|
$moneyValue, |
|
|
|
$targetDigits, |
|
|
|
$havingDigits |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: