Skip to main content

isValueZero

bool isValueZero() const;

Return whether the value portion of the UnitAlgebra is zero.

Parameters

  • returns (bool) Whether the value of the UnitAlgebra is zero.

Example

SST::UnitAlgebra* num = new UnitAlgebra("0hz");
bool hasFrequency = num->isValueZero();
#include <sst/core/unitalgebra.h>