set_float_value method

set_float_value

A method to set the float value with a specified unit. If the property attached with this value can not accept the specified unit or the float value, the value will be unchanged and a DOMException will be raised.

def set_float_value(self, unit_type, float_value):
    ...
ParameterTypeDescription
unit_typeintType of the unit.
float_valuefloatThe float value.

See Also