buffalo_core.as_float_scalar
- buffalo_core.as_float_scalar(value)[source]
Normalize a scalar-like numeric value to a Python
float.- Parameters:
value (
buffalo_core.typing.FloatInput) – Scalar-like numeric input expected to contain exactly one value.- Returns:
Python
floatextracted from the normalized input.- Return type:
float
Notes
This helper is useful at third-party boundaries and other scalar-only interfaces that require a native Python float rather than a NumPy scalar or one-element array.