public function SassNumber::isComparableTo in Sassy 7
Same name and namespace in other branches
- 7.3 phpsass/script/literals/SassNumber.php \SassNumber::isComparableTo()
* Returns a value indicating if this number can be compared to other. *
Return value
boolean true if this number can be compared to other, false if not
File
- phamlp/
sass/ script/ literals/ SassNumber.php, line 454
Class
- SassNumber
- SassNumber class. Provides operations and type testing for Sass numbers. Units are of the passed value are converted the those of the class value if it has units. e.g. 2cm + 20mm = 4cm while 2 + 20mm =…
Code
public function isComparableTo($other) {
try {
$this
->op_plus($other);
return true;
} catch (Exception $e) {
return false;
}
}