import module namespace math="http://www.zorba-xquery.com/modules/math"; math:percentile((1, 3, 4, 3, 2, 2, 5, 3, 5), 1) (: Expected output: <?xml version="1.0" encoding="UTF-8"?> 5 :)