Skip to main content

getFloatValue

Get the value of the UnitAlgebra as a float.

Syntax​

value = ua.getFloatValue()

Parameters​

  • returns the value portion of the UnitAlgebra as a float type

Example​

from sst import UnitAlgebra

ua = UnitAlgebra("1.77s")
print("%f"%(ua.getFloatValue()))
Output
1.770000

Import​

from sst import UnitAlgebra