parameters: (value: AnyFloat)
docstring: Turn callable or float into float.
docstring_summary: Turn callable or float into float.
docstring_tokens: Turn callable or float into float .
function: def to_float(value: AnyFloat) -> float:
      "Turn callable or float into float."
      if callable(value):
          return to_float(value())
      else:
          return float(value)
function_tokens: def to_float ( value : AnyFloat ) -> float : if callable ( value ) : return to_float ( value ( ) ) else : return float ( value )