{"id":10890211,"date":"2018-11-17T10:28:59","date_gmt":"2018-11-17T10:28:59","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/round-5-or-integer\/"},"modified":"2018-11-17T10:28:59","modified_gmt":"2018-11-17T10:28:59","slug":"round-5-or-integer","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/round-5-or-integer\/","title":{"rendered":"Round .5 or Integer"},"content":{"rendered":"<p>How can I round Round to be .5 or Integer ?<br \/>\nSmall digits Demo as below:<br \/>\n1.) 5.15 to 5.5<br \/>\n2.) 5.4 to 5.5<br \/>\n3.) 4.45 to 4.5<br \/>\n4.) 9.6 to 10.0<br \/>\n5.) 7.7 to 8.0<\/p>\n<p>if the digits are over 15 demo as below:<br \/>\n1.) 15.1 to 16<br \/>\n2.) 18.7 to 19<br \/>\n3.) 18.4 to 19<br \/>\n4.) 19.4 to 20<\/p>\n<p>How can i do it? Thanks<\/p>\n","protected":false},"template":"","class_list":["post-10890211","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10890211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10890211\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10890211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}