valid_num

sofia_redux.toolkit.utilities.func.valid_num(value)[source]

Check for valid numbers.

Returns True if the value can be cast to a float; False otherwise.

Parameters:
valuestr, float, int, bool

The value to test

Returns:
bool

True if value can be converted to a float, False otherwise.