[ exist-Bugs-2018768 ] problem with numerical predicate

View: New views
1 Messages — Rating Filter:   Alert me  

[ exist-Bugs-2018768 ] problem with numerical predicate

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bugs item #2018768, was opened at 2008-07-15 16:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=117691&aid=2018768&group_id=17691

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: cjwallace (cjwallace)
Assigned to: Nobody/Anonymous (nobody)
Summary: problem with numerical predicate

Initial Comment:
1.3Dev rev 7996


<result>
{let $cp := ("A","B")
return $cp[ceiling(math:random()*2)]
}
</result>

returns two values (usually!)
<result>A B</result>

whereas

<result>
{let $cp := ("A","B")
let $n := ceiling(math:random()*2)
return $cp[$n]
}
</result>

is correct

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=117691&aid=2018768&group_id=17691

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open
LightInTheBox - Buy quality products at wholesale price