# Altova MapForce 2020 Basic Edition

 xpath2 | numeric functions Scroll Home Prev Top Next More

The following XPath 2 numeric functions are available:

## abs

The abs function takes a numeric value as input and returns its absolute value as a decimal. For example, if the input argument is -2 or +2, the function returns 2.

## round-half-to-even

The round-half-to-even function rounds the supplied number (first argument) to the degree of precision (number of decimal places) supplied in the optional second argument. For example, if the first argument is 2.141567 and the second argument is 3, then the first argument (the number) is rounded to three decimal places, so the result will be 2.141. If no precision (second argument) is supplied, the number is rounded to zero decimal places, that is, to an integer.

The 'even' in the name of the function refers to the rounding to an even number when a digit in the supplied number is midway between two values. For example, round-half-to-even(3.475, 2) would return 3.48.
{"ft_lang_label":"__label__en","ft_lang_prob":0.74147105,"math_prob":0.9829852,"size":894,"snap":"2020-24-2020-29","text_gpt3_token_len":205,"char_repetition_ratio":0.152809,"word_repetition_ratio":0.0,"special_character_ratio":0.24049217,"punctuation_ratio":0.12021858,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9931155,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-07-07T16:52:14Z\",\"WARC-Record-ID\":\"<urn:uuid:ac86d4ac-0161-4e6d-b73a-b74077010147>\",\"Content-Length\":\"38982\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:46870d84-3cb8-4c06-899a-dac9c448f5f5>\",\"WARC-Concurrent-To\":\"<urn:uuid:7e6e3bef-f289-4375-9a48-6e1efe8a15db>\",\"WARC-IP-Address\":\"23.208.60.125\",\"WARC-Target-URI\":\"https://www.altova.com/manual/Mapforce/mapforcebasic/mff_lib_xpath_numeric.html\",\"WARC-Payload-Digest\":\"sha1:73FNHRV35DA7CHSO7PHHPOECR5Z56PVW\",\"WARC-Block-Digest\":\"sha1:LWUT3JSX6PQ7CZIJYX6AHQWGLPSPCHBN\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-29/CC-MAIN-2020-29_segments_1593655893487.8_warc_CC-MAIN-20200707142557-20200707172557-00357.warc.gz\"}"}