get_float_value method

get_float_value

This method is used to get a float value in a specified unit. If this CSS value doesn’t contain a float value or can’t be converted into the specified unit, a DOMException is raised.

Returns

Returns value

def get_float_value(self, unit_type):
    ...
ParameterTypeDescription
unit_typeintType of the unit.

See Also