Base: Units: introduce unit one
Dimensionless quantities have all exponents equal to zero. Such quantities are simply numbers. The associated unit is the unit one, symbol 1, although this is rarely explicitly written. See chapter 2.3.3 Dimensions of quantities, The International System of Units, 9th edition.
This commit is contained in:
@@ -802,7 +802,7 @@ void Sheet::updateProperty(CellAddress key)
|
||||
Base::PyGILStateLocker lock;
|
||||
setObjectProperty(key, constant->getPyValue());
|
||||
}
|
||||
else if (!number->getUnit().isEmpty()) {
|
||||
else if (number->getUnit() != Unit::One) {
|
||||
setQuantityProperty(key, number->getValue(), number->getUnit());
|
||||
}
|
||||
else if (number->isInteger(&l)) {
|
||||
|
||||
Reference in New Issue
Block a user