brainpy.tools.checking.check_float#

brainpy.tools.checking.check_float(value, name=None, min_bound=None, max_bound=None, allow_none=False, allow_int=True)[source]#

Check float type.

Parameters
  • value (Any) –

  • name (optional, str) –

  • min_bound (optional, float) – The allowed minimum value.

  • max_bound (optional, float) – The allowed maximum value.

  • allow_none (bool) – Whether allow the value is None.

  • allow_int (bool) – Whether allow the value be an integer.