{"id":5413,"date":"2021-06-07T15:01:52","date_gmt":"2021-06-07T20:01:52","guid":{"rendered":"https:\/\/www.summet.com\/blog\/?p=5413"},"modified":"2021-06-07T15:01:52","modified_gmt":"2021-06-07T20:01:52","slug":"making-bc-use-scale8-or-any-other-configuration-every-time-you-start-it","status":"publish","type":"post","link":"https:\/\/www.summet.com\/blog\/2021\/06\/07\/making-bc-use-scale8-or-any-other-configuration-every-time-you-start-it\/","title":{"rendered":"Making bc use scale=8 (or any other configuration) every time you start it."},"content":{"rendered":"<p>If you use bc (a command line calculator) frequently, you probably want floating point division by default. You can type &#8220;scale=8&#8221; every time you open it, or you can set up some environment arguments to have that be your default every time you open it.<\/p>\n<p>Create a .bc file in your home directory that includes:<\/p>\n<pre>\r\nscale=8<\/pre>\n<p>Edit a file that is executed every time you log in (such as .bashrc) to include the line:<\/p>\n<pre>\r\nexport BC_ENV_ARGS=~\/.bc<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you use bc (a command line calculator) frequently, you probably want floating point division by default. You can type &#8220;scale=8&#8221; every time you open it, or you can set up some environment arguments to have that be your default &hellip; <a href=\"https:\/\/www.summet.com\/blog\/2021\/06\/07\/making-bc-use-scale8-or-any-other-configuration-every-time-you-start-it\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,3],"tags":[],"class_list":["post-5413","post","type-post","status-publish","format-standard","hentry","category-commentary","category-linux"],"_links":{"self":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/5413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/comments?post=5413"}],"version-history":[{"count":1,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/5413\/revisions"}],"predecessor-version":[{"id":5414,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/5413\/revisions\/5414"}],"wp:attachment":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/media?parent=5413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/categories?post=5413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/tags?post=5413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}