Skip to main content

toString

std::string toString() const;

Return a string representation of the UnitAlgebra.

Parameters

  • returns (std::string) A string of the UnitAlgebra.

Example


UnitAlgebra ua("1KiB");

std::string ua_string = ua.toString();
// ua_string = "1024B"
#include <sst/core/unitalgebra.h>