Re: [basex-talk] "Infinity" is incorrectly cast to xs:float.

2018-06-28 Thread Christian GrĂ¼n
Dear Reece,

Thanks for the hint. An updated snapshot will be available tomorrow [1].

Best,
Christian

[1] http://files.basex.org/releases/latest/



On Sat, Jun 23, 2018 at 3:53 PM Reece Dunn  wrote:
>
> 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


[basex-talk] "Infinity" is incorrectly cast to xs:float.

2018-06-23 Thread Reece Dunn
 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