{"id":1827,"date":"2022-02-06T13:59:42","date_gmt":"2022-02-06T04:59:42","guid":{"rendered":"https:\/\/aiacademy.jp\/media\/?p=1827"},"modified":"2022-02-10T10:57:28","modified_gmt":"2022-02-10T01:57:28","slug":"%e3%80%90python%e3%80%91%e5%b0%8f%e6%95%b0%e7%82%b9%e4%bb%a5%e4%b8%8b%e3%82%92%e5%88%87%e3%82%8a%e6%8d%a8%e3%81%a6%e3%82%8b%e6%96%b9%e6%b3%95%e3%80%80math-floor","status":"publish","type":"post","link":"https:\/\/aiacademy.jp\/media\/?p=1827","title":{"rendered":"\u3010Python\u3011\u5c0f\u6570\u70b9\u4ee5\u4e0b\u3092\u5207\u308a\u6368\u3066\u308b\u65b9\u6cd5\u3000math.floor()"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"i-0\">\u5c0f\u6570\u70b9\u4ee5\u4e0b\u3092\u5207\u308a\u6368\u3066\u308b\u65b9\u6cd5<\/h1>\n\n\n\n<p>Python\u3067<meta charset=\"utf-8\">\u5c0f\u6570\u70b9\u4ee5\u4e0b\u3092\u5207\u308a\u6368\u3066\u305f\u3044\u5834\u5408\u306b\u306f\u3001<a href=\"https:\/\/docs.python.org\/ja\/3\/library\/math.html?highlight=math%20ceil\" rel=\"nofollow noopener\" target=\"_blank\">math<\/a>\u30e2\u30b8\u30e5\u30fc\u30eb\u306efloor()\u3092\u7528\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import math\nprint(math.floor(83200.352122)) # 83200<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u3067\u306f\u3001<meta charset=\"utf-8\">83200.352122\u3068\u3044\u3046\u6570\u5024\u3092floor()\u306e\u5f15\u6570\u306b\u6e21\u3059\u3068\u3001\u5c0f\u6570\u90e8\u5206\u306e.<meta charset=\"utf-8\">352122\u304c\u5207\u308a\u6368\u3066\u3089\u308c\u3001<meta charset=\"utf-8\">83200\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5207\u308a\u6368\u3066\u3067\u306f\u306a\u304f\u3001\u5207\u308a\u4e0a\u3052\u305f\u3044\u5834\u5408\u306b\u306fmath\u30e2\u30b8\u30e5\u30fc\u30eb\u306eceil()\u3092\u7528\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><meta charset=\"utf-8\">print(math.ceil(83200.352122)) # 83201<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-1\">math.floor()\u306f\u3069\u306e\u3088\u3046\u306a\u5834\u9762\u3067\u4f7f\u3046\u306e\u304b<\/h1>\n\n\n\n<p>\u5c0f\u6570\u70b9\u4ee5\u4e0b\u3092\u5207\u308a\u6368\u3066\u305f\u3044\u5834\u5408\u306b\u3001&nbsp;<code>math.floor()<\/code>\u3092\u7528\u3044\u307e\u3059\u304c\u3001\u4f8b\u3048\u3070\u3001\u4e0d\u52d5\u7523\u63a8\u5b9a\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\u969b\u306b\u3001scikit-learn\u306a\u3069\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7528\u3044\u3066\u3001\u56de\u5e30\u30e2\u30c7\u30eb\u3092\u4f5c\u6210\u3057\u4e88\u6e2c\u3057\u305f\u5834\u5408\u306b\u306f\u3001\u5c0f\u6570\u70b9\u307e\u3067\u5024\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br>\u5bb6\u8cc3\u3092\u63a8\u5b9a\u3059\u308b\u3088\u3046\u306aWeb\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\u5834\u5408\u306b\u306f\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u3082\u542b\u3093\u3060\u6570\u5b57\u304c\u8868\u793a\u3055\u308c\u3068\u4f7f\u3044\u624b\u306b\u3068\u3063\u3066\u306f\u7121\u99c4\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u308b\u305f\u3081\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u3092\u5207\u308a\u6368\u3066\u305f\u4e0a\u3067\u6570\u5024\u3092\u8868\u793a\u3055\u305b\u305f\u3044\u5834\u5408\u306a\u3069\u306b\u3001&nbsp;<code>math.floor()<\/code>\u3092\u7528\u3044\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-2\">Python\u3092\u52b9\u7387\u3088\u304f\u5b66\u3076\u306b\u306f\uff1f<\/h1>\n\n\n\n<p>Python\u3092\u52b9\u7387\u3088\u304f\u5b66\u3076\u306b\u306f\u3001\u666e\u6bb5\u304b\u3089Python\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u73fe\u5f79\u306e\u30c7\u30fc\u30bf\u30b5\u30a4\u30a8\u30f3\u30c6\u30a3\u30b9\u30c8\u3084\u6a5f\u68b0\u5b66\u7fd2\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u8cea\u554f\u3067\u304d\u308b\u74b0\u5883\u3067\u5b66\u3076\u3053\u3068\u3067\u3059\u3002<br>\u8cea\u554f\u3057\u653e\u984c\u304b\u3064\u3001\u4f53\u7cfb\u7684\u306b\u5b66\u3079\u308b\u52d5\u753b\u30b3\u30f3\u30c6\u30f3\u30c4\u3067\u30c7\u30fc\u30bf\u5206\u6790\u6280\u8853\u3092\u5b66\u3073\u305f\u3044\u65b9\u306f\u3001\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u597d\u304d\u306a\u6642\u9593\u306b\u52c9\u5f37\u3067\u304d\u308b<a href=\"https:\/\/aiacademy.jp\/bootcamp\">AI Academy Bootcamp<\/a>\u304c\u30aa\u30b9\u30b9\u30e1\u3067\u3059\u3002\u53d7\u8b1b\u6599\u3082\u696d\u754c\u6700\u5b89\u5024\u306e35,000\u5186\uff08\uff16\u30f6\u6708\u9593\u8cea\u554f\u3057\u653e\u984c\uff0b\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u52d5\u753b\u30b3\u30f3\u30c6\u30f3\u30c4\u3001\u30c6\u30ad\u30b9\u30c8\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u5229\u7528\u53ef\u80fd\uff09\u306a\u306e\u3067\u3001\u662f\u975e\u3054\u6d3b\u7528\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/aiacademy.jp\/bootcamp\/\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"341\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-1024x341.png\" alt=\"\" class=\"wp-image-691\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-1024x341.png 1024w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-300x100.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-768x256.png 768w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-940x313.png 940w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u5c0f\u6570\u70b9\u4ee5\u4e0b\u3092\u5207\u308a\u6368\u3066\u308b\u65b9\u6cd5 Python\u3067\u5c0f\u6570\u70b9\u4ee5\u4e0b\u3092\u5207\u308a\u6368\u3066\u305f\u3044\u5834\u5408\u306b\u306f\u3001math\u30e2\u30b8\u30e5\u30fc\u30eb\u306efloor()\u3092\u7528\u3044\u307e\u3059\u3002 \u4e0a\u8a18\u3067\u306f\u300183200.352122\u3068\u3044\u3046\u6570\u5024\u3092floor()\u306e\u5f15\u6570\u306b\u6e21\u3059\u3068\u3001\u5c0f\u6570\u90e8\u5206\u306e.3521 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":1830,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[],"class_list":{"0":"post-1827","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python"},"_links":{"self":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/1827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1827"}],"version-history":[{"count":3,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/1827\/revisions"}],"predecessor-version":[{"id":1893,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/1827\/revisions\/1893"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/media\/1830"}],"wp:attachment":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}