[Base]retrieve unit text

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
This commit is contained in:
wandererfan
2025-10-19 15:56:47 -04:00
committed by Chris Hennes
parent a431ccc156
commit c9fffa6789
4 changed files with 40 additions and 0 deletions

View File

@@ -66,6 +66,11 @@ std::string UnitsApi::getBasicLengthUnit()
return schemas->currentSchema()->getBasicLengthUnit();
}
std::string UnitsApi::getUnitText(const Quantity& quant)
{
return schemas->currentSchema()->getUnitText(quant);
}
void UnitsApi::setDecimals(const int prec)
{
decimals = prec;