{"id":54,"date":"2022-08-29T14:02:48","date_gmt":"2022-08-29T14:02:48","guid":{"rendered":"http:\/\/sunstories.in\/blog\/?p=54"},"modified":"2022-09-06T15:26:51","modified_gmt":"2022-09-06T15:26:51","slug":"manual-division-in-a-computer","status":"publish","type":"post","link":"https:\/\/sunstories.in\/blog\/manual-division-in-a-computer\/","title":{"rendered":"Manual division in a computer"},"content":{"rendered":"\n<p>I had started learning python from my father about a year ago, and I was creating a  a program that could divide and show the reminder, without using the division symbol<\/p>\n\n\n\n<p>My algorithm went along the lines of, take the large number, subtract the small number from it, count one, take the new number and subtract the small number from that and count two , and repeat that till subtracting the smaller number will result in a negative integer.<\/p>\n\n\n\n<p>The most important thing I learnt from that is why we are given a multiplication and division symbol instead of just addition and subtraction.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Begin\necho \"Hello world\";\nEnd;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I had started learning python from my father about a year ago, and I was creating a a program that could divide and show the reminder, without using the division symbol My algorithm went along the lines of, take the large number, subtract the small number from it, count one, take the new number and&hellip; <a class=\"more-link\" href=\"https:\/\/sunstories.in\/blog\/manual-division-in-a-computer\/\">Continue reading <span class=\"screen-reader-text\">Manual division in a computer<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-54","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"_links":{"self":[{"href":"https:\/\/sunstories.in\/blog\/wp-json\/wp\/v2\/posts\/54","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sunstories.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sunstories.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sunstories.in\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sunstories.in\/blog\/wp-json\/wp\/v2\/comments?post=54"}],"version-history":[{"count":5,"href":"https:\/\/sunstories.in\/blog\/wp-json\/wp\/v2\/posts\/54\/revisions"}],"predecessor-version":[{"id":62,"href":"https:\/\/sunstories.in\/blog\/wp-json\/wp\/v2\/posts\/54\/revisions\/62"}],"wp:attachment":[{"href":"https:\/\/sunstories.in\/blog\/wp-json\/wp\/v2\/media?parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sunstories.in\/blog\/wp-json\/wp\/v2\/categories?post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sunstories.in\/blog\/wp-json\/wp\/v2\/tags?post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}