Hello,
 
Many signatures for xf: functions, such as xf:index() https://www.w3.org/community/xformsusers/wiki/XPath_Expressions_Module#The_index.28.29_Function and xf:seconds() https://www.w3.org/community/xformsusers/wiki/XPath_Expressions_Module#The_seconds.28.29_Function, specify an xs:integer or an xs:decimal return type but these functions can also return the "NaN" (not-a-number) value which is just defined for xs:float and xs:double.
 
While XPath 3.1 now specifies the xs:numeric union type, for XPath 2.0, mentioning "numeric" allows implementations to return a value with the most accurate numeric type as for fn:abs() https://www.w3.org/TR/xquery-operators/#func-abs.
 
What do you think?
 
--Alain