{"id":362,"date":"2014-08-14T16:17:07","date_gmt":"2014-08-14T07:17:07","guid":{"rendered":"http:\/\/gomocool.net\/gomokulog\/?p=362"},"modified":"2014-08-14T16:17:07","modified_gmt":"2014-08-14T07:17:07","slug":"vb-net%e3%81%a7%e3%81%aeintger%e3%81%ae%e5%a4%89%e6%8f%9b%e3%81%af%e9%8a%80%e8%a1%8c%e4%b8%b8%e3%82%81%e3%81%ab%e6%b3%a8%e6%84%8f","status":"publish","type":"post","link":"https:\/\/gomokulog.gomocool.net\/?p=362","title":{"rendered":"VB.NET\u3067\u306eIntger\u306e\u5909\u63db\u306f\u9280\u884c\u4e38\u3081\u306b\u6ce8\u610f"},"content":{"rendered":"<p>VisualBasic.NET\u3067\u306f\u3001Double\u578b\u7b49\u306e\u5c0f\u6570\u70b9\u306e\u3042\u308b\u3082\u306e\u3092\u5909\u63db\u3059\u308b\u3068\u3001\u5207\u308a\u6368\u3066\u3089\u308c\u305a\u306b<a title=\"\u7aef\u6570\u51e6\u7406 \u56db\u6368\u4e94\u5165\u3068\u9280\u884c\u4e38\u3081\" href=\"http:\/\/gomocool.net\/gomokulog\/?p=188\">\u9280\u884c\u4e38\u3081<\/a>\u306b\u306a\u308b\u3002<\/p>\n<p>C#\u3067\u306f\u300112345.9999\u3068\u3044\u3063\u305f\u5c0f\u6570\u70b9\u3092int\u578b\u306b\u5909\u63db\u3059\u308b\u3068\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306f\u5207\u308a\u6368\u3066\u3089\u308c\u306612345\u3068\u306a\u308b\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001VB.NET\u3067\u306f12346\u3068\u306a\u308b\u3002<\/p>\n<pre class=\"lang:vbnet decode:true\">Dim tInt0 As Integer = CInt(\"12345.999999\") '12346\r\n\r\nDim tInt1 As Integer = Integer.Parse(\"12345.0000\") '\u30a8\u30e9\u30fc\u306b\u306a\u308b\r\n\r\nDim tInt2 As Integer = CType(Double.Parse(\"12345.9999999\"), Integer) '12346\r\n\r\nDim tInt3 As Integer = Math.Floor(Double.Parse(\"-12345.999999\")) '-123456\r\n\r\nDim tInt4 As Integer = Math.Truncate(Double.Parse(\"12345.999999\")) '12345\r\n<\/pre>\n<p>\u6587\u5b57\u5217\u3092\u76f4\u63a5CInt\u3067\u30b3\u30f3\u30d0\u30fc\u30c8\u3057\u3066\u3044\u305f\u3042\u305f\u308a\u304b\u3089\u3001\u306a\u3093\u3060\u304b\u305f\u307e\u306b\u4e0d\u660e\u306a\u6319\u52d5\u3092\u3059\u308b\u306e\u3067\u3001\u8272\u3005\u3068\u30c6\u30b9\u30c8\u3057\u3066\u307f\u305f\u3002<\/p>\n<p>\u306a\u3093\u3067\u3001\u3053\u3093\u306a\u4ed5\u69d8\u306b\u3057\u305f\u306e\u304b\u306f\u77e5\u3089\u306a\u3044\u304c\u3001\u77e5\u3089\u306a\u3044\u3067C#\u3068\u540c\u3058\u3088\u3046\u306b\u8003\u3048\u3066\u3044\u308b\u3068\u3084\u3089\u308c\u308b\u3002<\/p>\n<p>\u305f\u3093\u306b\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u3092\u5207\u308a\u6368\u3066\u305f\u3044\u5834\u5408\u306f\u3001Double\u578b\u3092Trancate\u3059\u308b\u306e\u304c\u30d9\u30b9\u30c8\u3060\u3068\u601d\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>VisualBasic.NET\u3067\u306f\u3001Double\u578b\u7b49\u306e\u5c0f\u6570\u70b9\u306e\u3042\u308b\u3082\u306e\u3092\u5909\u63db\u3059\u308b\u3068\u3001\u5207\u308a\u6368\u3066\u3089\u308c\u305a\u306b\u9280\u884c\u4e38\u3081\u306b\u306a\u308b\u3002 C#\u3067\u306f\u300112345.9999\u3068\u3044\u3063\u305f\u5c0f\u6570\u70b9\u3092int\u578b\u306b\u5909\u63db\u3059\u308b\u3068\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306f\u5207\u308a\u6368\u3066\u3089\u308c\u30661234&hellip;  <a href=\"https:\/\/gomokulog.gomocool.net\/?p=362\" class=\"more-link\">more <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":[66,43],"tags":[],"class_list":["post-362","post","type-post","status-publish","format-standard","hentry","category-dot-net","category-visualbasic-net"],"_links":{"self":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=362"}],"version-history":[{"count":2,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/362\/revisions"}],"predecessor-version":[{"id":364,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/362\/revisions\/364"}],"wp:attachment":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}