{"id":34,"date":"2011-01-03T17:13:26","date_gmt":"2011-01-04T00:13:26","guid":{"rendered":"http:\/\/ryan.witschger.net\/?p=34"},"modified":"2011-01-03T17:13:26","modified_gmt":"2011-01-04T00:13:26","slug":"quick-tip-pi-in-windows-powershell","status":"publish","type":"post","link":"http:\/\/www.Get-Blog.com\/?p=34","title":{"rendered":"Quick Tip: Pi in Windows Powershell"},"content":{"rendered":"<p>It may turn up that you need to use Pi for some random reason.  Well instead of trying to make a variable in which you manually type it, you can use the version built into System.Math which holds Pi to 20 decimal places.<\/p>\n<div class=\"codecolorer-container powershell solarized-dark\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"powershell codecolorer\"><span class=\"re0\">$Pi<\/span> <span class=\"sy0\">=<\/span> <span class=\"br0\">&#91;<\/span>System.Math<span class=\"br0\">&#93;<\/span>::Pi<br \/>\n<span class=\"nu0\">3<\/span> <span class=\"sy0\">*<\/span> <span class=\"re0\">$Pi<\/span><br \/>\n<span class=\"sy0\">&gt;&gt;<\/span> <span class=\"nu0\">9.42477796076938<\/span><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>It may turn up that you need to use Pi for some random reason.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"http:\/\/www.Get-Blog.com\/index.php?rest_route=\/wp\/v2\/posts\/34"}],"collection":[{"href":"http:\/\/www.Get-Blog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.Get-Blog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.Get-Blog.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.Get-Blog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=34"}],"version-history":[{"count":0,"href":"http:\/\/www.Get-Blog.com\/index.php?rest_route=\/wp\/v2\/posts\/34\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.Get-Blog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.Get-Blog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.Get-Blog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}