{"id":28248,"date":"2017-06-16T10:35:44","date_gmt":"2017-06-16T02:35:44","guid":{"rendered":"http:\/\/localhost\/help\/?page_id=28248"},"modified":"2024-01-17T10:48:02","modified_gmt":"2024-01-17T02:48:02","slug":"integer","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/integer\/","title":{"rendered":"Integer()"},"content":{"rendered":"\n<h2><span id=\"Format\">Format<\/span><\/h2>\n<p class=\"intro-text\"><strong>Integer(Arg1)<\/strong><\/p>\n<h2><span id=\"Returns\">Returns<\/span><\/h2>\n<p class=\"intro-text\">Converts the supplied argument into an Integer data type.<\/p>\n<h2><span id=\"Inputs\">Inputs<\/span><\/h2>\n<p class=\"intro-text\"><strong>Arg1<\/strong>: The argument to be converted.<br \/>\nBehaviour:\u00a0Required<br \/>\nDimension: Collection, SingleValue, MultiCollection<br \/>\nValid data types: Boolean, DateTime, Decimal, Integer, String, Duration<\/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>Examples<\/h2>\n<p class=\"intro-text\">Expression:\u00a0<span class=\"code-fragment\">Integer(True)<\/span><br \/>\nResult: Returns the Boolean value of <em>True<\/em> as an Integer value<em>.<\/em>\u00a0True=1, False=0.<br \/>\nE.g. <span style=\"color: #0000ff;\">1<\/span><\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Integer(12.2)<\/span><br \/>\nResult: Returns the decimal value of <em>12.2<\/em>\u00a0as an Integer value. <br \/>\nE.g.\u00a0<span style=\"color: #0000ff;\">12<\/span><\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Integer(12)<\/span><br \/>\nResult: Returns the integer value of <em>12<\/em>\u00a0as an Integer value. <br \/>\nE.g.\u00a0<span style=\"color: #0000ff;\">12<\/span><\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Integer(\"12.2\")<\/span><br \/>\nResult: Returns the string value of <em>\"12.2\"<\/em>\u00a0as an Integer\u00a0value<em>.<\/em> <br \/>\nE.g.\u00a0<span style=\"color: #0000ff;\">12<\/span><\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Integer({utc'2017-01-18 14:32'})<\/span><br \/>\nResult: Returns the the number of seconds since Unix epoch<em>.<\/em> <br \/>\nE.g. <span style=\"color: #0000ff;\">1484749920<\/span><\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Integer({du'-01:02:03.456'})<\/span><br \/>\nResult: Returns the number of seconds of the duration<em>.<\/em> <br \/>\nE.g.\u00a0<span style=\"color: #0000ff;\">-3723<\/span><\/p>\n<h2><span id=\"Release_History\">Release History<\/span><\/h2>\n<ul class=\"intro-text\">\n<li>Integer() 4.6.5\n<ul class=\"intro-text\">\n<li>Changed Arg1 parameter to support MultiCollection values.<\/li>\n<\/ul>\n<\/li>\n<li>Integer() 4.0\n<ul class=\"intro-text\">\n<li>Initial version<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Converts the supplied argument into an Integer data type.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/integer\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":10466,"parent":3650,"menu_order":122,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[9],"tags":[100,397],"class_list":["post-28248","page","type-page","status-publish","has-post-thumbnail","hentry","category-tech-ref","tag-calculations","tag-casting-functions","Version-4-0","Version-4-6-5","Product-srv"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/28248","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=28248"}],"version-history":[{"count":2,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/28248\/revisions"}],"predecessor-version":[{"id":64741,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/28248\/revisions\/64741"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/3650"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=28248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=28248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=28248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}