cratepy.ioput.ioutilities.is_between

is_between(x, lower_bound=0, upper_bound=1)[source]

Check if numeric instance is between lower and upper values (included).

Parameters:
  • x ({int, float}) – Numerical type instance.

  • lower_bound ({int, float}, default=0) – Lower boundary value (included).

  • upper_bound ({int, float}, default=1) – Upper boundary value (included).

Returns:

boolTrue if numeric instance is between lower and upper values, False otherwise.

Return type:

bool