{"title":"\u5c0f\u6570\u70b9\u7b2c\u4f55\u6841\u3068\u3044\u3046\u306e\u3092round\u4e38\u3081\u7528\u6570\u5024\u3068format\u306e\u6841\u6570\u3067\u8003\u3048\u308b\u5834\u5408","height":"190","provider_url":"https://hatena.blog","published":"2021-04-05 19:40:43","author_url":"https://blog.hatena.ne.jp/houyhnhm/","blog_title":"The Nameless City","url":"https://namelesscity.hatenadiary.com/entry/2021/04/05/194043","blog_url":"https://namelesscity.hatenadiary.com/","image_url":null,"version":"1.0","categories":["SAS Tips"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnamelesscity.hatenadiary.com%2Fentry%2F2021%2F04%2F05%2F194043\" title=\"\u5c0f\u6570\u70b9\u7b2c\u4f55\u6841\u3068\u3044\u3046\u306e\u3092round\u4e38\u3081\u7528\u6570\u5024\u3068format\u306e\u6841\u6570\u3067\u8003\u3048\u308b\u5834\u5408 - The Nameless City\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","author_name":"houyhnhm","description":"\u4ed6\u4eba\u306e\u30de\u30af\u30ed\u306e\u30d0\u30b0\u53d6\u308a\u306f\u3064\u3089\u3044\u3002 round\u306e\u4e38\u3081\u7528\u306e\u6570\u5024\u3068\u3001put\u7b49\u3067\u5229\u7528\u3059\u308bformat\u306e\u6841\u6570\u306b\u306f\u9055\u3044\u304c\u3042\u308b\u3002 \u3068\u3044\u3046\u306e\u306f\u3001\u7d50\u69cb\u9762\u5012\u81ed\u3044\u306e\u3060\u304c\u3001 format w.d round 10**(-d) \u3068\u3044\u3046\u95a2\u4fc2\u306a\u306e\u3067\u3042\u308b\u3088\u3068\u3002\u305f\u3060\u3057\u3001d>=0\u306e\u6574\u6570\u3002 data _NULL_ ; a=123.4567891234 ; do d=-2 to 8 ; format=\"12.\"||strip(put(d,12.0)) ; b=strip(putn(a,format)) ; rnum=10**(-d) ; c=round(a,rnum) ; put \"*** format/round ***\" \"(d\u2026","type":"rich","provider_name":"Hatena Blog"}