Hi,

I have found the following behaviour in BaseX 9.0:

    "Infinity" cast as xs:float (: INF :)
    "-Infinity" cast as xs:float (: -INF :)
    "infinity" cast as xs:float (: [FORG0001] Cannot convert xs:string to xs:float: "infinity". :)
    "Infinity" cast as xs:double (: [FORG0001] Cannot convert xs:string to xs:double: "Infinity". :)
    "-Infinity" cast as xs:double (: [FORG0001] Cannot convert xs:string to xs:double: "-Infinity". :)

From my reading of Functions and Operators 3.1, and XML Schema 1.1 Part 2 Datatypes, "Infinity" and "-Infinity" are both invalid values for xs:float (like with xs:double) -- they should only be "INF" and "-INF".

Kind regards,
Reece H. Dunn