Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 322 Bytes

isNegative.md

File metadata and controls

22 lines (14 loc) · 322 Bytes

isNegative()

checks whether the money's number is negative (less than zero).

Methods

isNegative()

Returns: bool

Usage

$m1 = money('-1000000');
$m2 = money('1000000');

$m1->isNegative(); // true
$m2->isNegative(); // false

📌 Back to the contents.