IsXsFloat🔗
Check that
text is a valid xs:float.
We check that the text matches the pattern of xs:float, and
that it does not overflow,
i.e.
, that it does not round to infinity unless it
is INF or -INF. See XsFloatOverflowThreshold.
Code
if not matches_xs_float(text):
return False
if text == "INF" or text == "-INF" or text == "NaN":
return True
return _is_decimal_magnitude_below(text, Xs_float_overflow_threshold)