Try casting 1000 as a double: let $d := 5.929411764705882353 return $d * xs:double( 1000 )
That worked for me on 4.2. SS From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of seme...@hotmail.com Sent: Tuesday, April 19, 2011 4:53 PM To: general@developer.marklogic.com Subject: [MarkLogic Dev General] Decimal overflow This code: let $d := 5.929411764705882353 return $d * 1000 Gives me this error on MarkLogic 4.2-2: [1.0-ml] XDMP-DECOVRFLW: (err:FOAR0002) let $d := 5.929411764705882353 return $d * 1000 -- Decimal overflow Is there some easy way around this? thanks, Ryan NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
_______________________________________________ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general