code: def write_float(self, registeraddress, value, numberOfRegisters=2):
          
          _checkNumerical(value, description='input value')
          _checkInt(numberOfRegisters, minvalue=2, maxvalue=4, description='number of registers')
          self._genericCommand(16, registeraddress, value, \
              numberOfRegisters=numberOfRegisters, payloadformat='float')
docs: Write a floating point number to the slave.
  
          Floats are stored in two or more consecutive 16-bit registers in the slave.
  
          Uses Modbus function code 16.
  
          For discussion on precision, number of registers and on byte order, see :meth:`.read_float`.
  
          Args:
              * registeraddress (int): The slave register start address (use decimal numbers, not hex).
              * value (float or int): The value to store in the slave
              * numberOfRegisters (int): The number of registers allocated for the float. Can be 2 or 4.
  
          Returns:
              None
  
          Raises:
              ValueError, TypeError, IOError