get_int

sofia_redux.scan.utilities.utils.get_int(value, default=0)[source]

Return an integer representation of the given value.

Parameters:
valuething

The value to resolve.

defaultint, optional

The default result to return if a conversion is not possible, or value matches the UNKNOWN_INT_VALUE.

Returns:
int