scamp_extensions.utilities.math.floor_to_multiple

scamp_extensions.utilities.math.floor_to_multiple(x, factor)[source]

Returns the multiple of factor that is closest below x. The first argument can optionally be a list, tuple, or iterator, in which case this is performed on each element.