declare namespace math="http://www.w3.org/2005/xpath-functions/math";
import module namespace
zorba-math="http://www.zorba-xquery.com/modules/math";

zorba-math:trunc(math:pi(), 2)


(:

Expected output:

<?xml version="1.0" encoding="UTF-8"?>
3.14

:)