{"id":10314,"date":"2016-02-26T10:59:26","date_gmt":"2016-02-26T02:59:26","guid":{"rendered":"http:\/\/localhost\/help\/p2-server\/calculations\/round\/"},"modified":"2024-08-15T10:31:30","modified_gmt":"2024-08-15T02:31:30","slug":"round","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/round\/","title":{"rendered":"Round()"},"content":{"rendered":"\n<h2><span id=\"Format\">Format<\/span><\/h2>\n<p class=\"intro-text\"><strong>Round(Number [,Decimals])<\/strong><\/p>\n<h2><span id=\"Returns\"><span id=\"Returns\">Returns<\/span><\/span><\/h2>\n<p class=\"intro-text\">Returns the rounded value of <em>Number\u00a0<\/em>to the specified number of decimal places.<\/p>\n<p class=\"intro-text\">Notes:\u00a0<\/p>\n<ul>\n<li class=\"intro-text\">Values below half way between rounded values are rounded down.<\/li>\n<li class=\"intro-text\">Values above half way are rounded up.<\/li>\n<li class=\"intro-text\">Values exactly equal to half way are also rounded up.<\/li>\n<li class=\"intro-text\">Rounding up means away from zero.<\/li>\n<li class=\"intro-text\">Rounding down means towards zero.<\/li>\n<\/ul>\n<h2>Inputs<\/h2>\n<p class=\"intro-text\"><strong>Number<\/strong>: The number to be rounded.<br \/>\nBehaviour:\u00a0Required<br \/>\nDimension: Collection, SingleValue, MultiCollection<br \/>\nValid data types: Decimal, Integer<\/p>\n<p class=\"intro-text\"><strong>Decimals<\/strong>: The number of decimal places to which to round,\u00a0between 0 and 20. If a decimal is supplied, it is converted to an integer. Default: 0<br \/>\nBehaviour: Optional<br \/>\nDimension: Collection, SingleValue<br \/>\nValid data types:\u00a0Decimal, Integer<\/p>\n<p class=\"left-bar\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/calculation-syntax\/#Data_Type\">How to format data types<\/a><\/p>\n<h2><span id=\"Examples\"><span id=\"Examples\">Examples<\/span><\/span><\/h2>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Round(23.45)<\/span><br \/>\nResult: 23<\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Round(23.45,0)<\/span><br \/>\nResult: 23<\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Round(1.24, 1)\u00a0<\/span><br \/>\nResult: 1.2<\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Round(1.25, 1)<\/span><br \/>\nResult: 1.3<\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Round(1.26, 1)<\/span><br \/>\nResult: 1.3<\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Round(-1.24, 1)<\/span><br \/>\nResult: -1.2<\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Round(-1.25, 1)<\/span><br \/>\nResult: -1.3<\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Round(-1.26, 1)<\/span><br \/>\nResult: -1.3<\/p>\n<h2><span id=\"Release_History\">Release History<\/span><\/h2>\n<ul class=\"intro-text\">\n<li>Round() 4.6.5\n<ul class=\"intro-text\">\n<li>Changed Number parameter to support MultiCollection values.<\/li>\n<\/ul>\n<\/li>\n<li>Round() 4.0\n<ul class=\"intro-text\">\n<li>Initial version<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Use Round(0 to get the rounded value of a number.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/round\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":10321,"parent":3650,"menu_order":178,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[9],"tags":[100,403],"class_list":["post-10314","page","type-page","status-publish","has-post-thumbnail","hentry","category-tech-ref","tag-calculations","tag-rounding","Version-4-0","Version-4-6-5","Product-srv"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/10314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=10314"}],"version-history":[{"count":2,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/10314\/revisions"}],"predecessor-version":[{"id":64756,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/10314\/revisions\/64756"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/3650"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media\/10321"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=10314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=10314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=10314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}