{"id":468,"date":"2014-03-20T12:31:42","date_gmt":"2014-03-20T12:31:42","guid":{"rendered":"http:\/\/codethataint.com\/blog\/?p=468"},"modified":"2014-03-20T12:31:42","modified_gmt":"2014-03-20T12:31:42","slug":"valueerror-invalid-literal-for-int-with-base-10","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/valueerror-invalid-literal-for-int-with-base-10\/","title":{"rendered":"ValueError: invalid literal for int() with base 10"},"content":{"rendered":"<p><strong>ValueError: invalid literal for int() with base 10<\/strong><\/p>\n<p>To Convert a Floating value to a Number in Python or Jython use the below method<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n int(float(259.0))\r\n<\/pre>\n<p>The output would be 259<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ValueError: invalid literal for int() with base 10 To Convert a Floating value to a Number in Python or Jython use the below method int(float(259.0)) The output would be 259<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[68],"tags":[],"class_list":["post-468","post","type-post","status-publish","format-standard","hentry","category-jython"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=468"}],"version-history":[{"count":1,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/468\/revisions"}],"predecessor-version":[{"id":469,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/468\/revisions\/469"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}