{"image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/b/baba_s/20180826/20180826160156.png","description":"\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 public static class MathUtils { public static double RoundByMultiple( double value, double unit ) { return Math.Round( value / unit ) * unit; } } \u4f7f\u7528\u4f8b Console.WriteLine( MathUtils.RoundByMultiple( 0.26, 0.25 ) ); // 0.25 Console.WriteLine( MathUtils.RoundByMultiple( 0.374, 0.25 ) ); // 0.25 Co\u2026","title":"\u3010C#\u3011\u6307\u5b9a\u3057\u305f\u500d\u6570\u3067\u56db\u6368\u4e94\u5165\u306e\u3088\u3046\u306b\u4e38\u3081\u308b\u95a2\u6570","url":"https://baba-s.hatenablog.com/entry/2022/01/10/210000","published":"2022-01-10 21:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2022%2F01%2F10%2F210000\" title=\"\u3010C#\u3011\u6307\u5b9a\u3057\u305f\u500d\u6570\u3067\u56db\u6368\u4e94\u5165\u306e\u3088\u3046\u306b\u4e38\u3081\u308b\u95a2\u6570 - \u30b3\u30ac\u30cd\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://baba-s.hatenablog.com/","height":"190","provider_url":"https://hatena.blog","type":"rich","width":"100%","categories":["C#"],"version":"1.0","author_name":"baba_s","author_url":"https://blog.hatena.ne.jp/baba_s/","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","provider_name":"Hatena Blog"}