public function Measurement::isZero in Physical Fields 8
Gets whether the current measurement is zero.
Return value
bool TRUE if the measurement is zero, FALSE otherwise.
File
- src/
Measurement.php, line 212
Class
- Measurement
- Provides a base class for measurement value objects.
Namespace
Drupal\physicalCode
public function isZero() {
return Calculator::compare($this->number, '0') == 0;
}