get_float

sofia_redux.scan.utilities.utils.get_float(value, default=nan)[source]

Return a float representation of the given value.

Parameters:
valuething

The value to resolve.

defaultfloat, optional

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

Returns:
int