arim.helpers.smallest_uint_that_fits#

arim.helpers.smallest_uint_that_fits(max_value)[source]#

Return the smallest unsigned integer datatype (dtype) such as all numbers between 0 and ‘max_value’ can be stored without overflow.