ML Xquery

Moderator: Reach-Native-gp

Post Reply
aakashali
Posts: 6
Joined: Mon Jun 08, 2020 10:26 am

ML Xquery

Post by aakashali »

How can we calculate the below expression in the Xquery and what would be the output ?

(2,3)/2

If possible please mention the code as well.

amitgope
Posts: 21
Joined: Thu Oct 01, 2020 4:10 pm

Re: ML Xquery

Post by amitgope »

The above expression when executed in the qconsole will generate an error. To make the expression work it needs to be changed to (2,3) div 2. The result of the expression will be 1 and 1.5. The code above will iteratively divide the number in the sequence by 2 and give the result back.

Post Reply