def _float_parameter(level: float, maxval: float):
    """Helper function to scale a value between ``0`` and ``maxval`` and return as a float.

    Args:
      level (float): Level of the operation that will be between [0, 10].
      maxval (float): Maximum value that the operation can have. This will be scaled to
          level/10.

    Returns:
      float: The result from scaling ``maxval`` according to ``level``.
    """
    return float(level) * maxval / 10.