getRoundedValue
Get the value of the UnitAlgebra as an integer.
Syntax
value = ua.getRoundedValue()
Parameters
- returns the value portion of the UnitAlgebra as an integer
Example
from sst import UnitAlgebra
ua0 = UnitAlgebra("55 s")
ua1 = UnitAlgebra("55.2 s")
print("%d"%(ua0.getRoundedValue()))
print("%d"%(ua1.getRoundedValue()))
Output
55
55
Import
from sst import UnitAlgebra