Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Money
Money
compareTo0
Money\Money::compareTo0 PHP Method
Money Class Documentation
Show file
Open project: ulabox/money
compareTo0()
private
method
Returns an integer less than, equal to, or greater than zero if the value of this object is considered to be respectively less than, equal to, or greater than 0
private
compareTo0
( ) :
integer
return
integer
private function compareTo0() { return bccomp($this->amount, '', self::SCALE); }
Money
__callStatic
__construct
add
amount
assertNumeric
assertSameCurrencyAs
compareTo
compareTo0
convertTo
currency
divideBy
equals
fromAmount
hasSameCurrencyAs
isGreaterThan
isGreaterThanOrEqualTo
isLessThan
isLessThanOrEqualTo
isNegative
isPositive
isZero
multiplyBy
newInstance
round
subtract