fhelium.core.scale
Validation helpers for per-value CKKS scales.
coerce_scale
function View source
python
def coerce_scale(value: Any, *, value_name: str) -> float: ...1
Validate and convert one actual CKKS scale to binary64.
The result is a Python float satisfying default_scale or alter any value payload. Centralizing the conversion prevents construction and operation paths from assigning different meanings to zero, infinities, NaNs, or booleans.