{"id":5937,"date":"2022-05-29T18:40:00","date_gmt":"2022-05-29T09:40:00","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=5937"},"modified":"2022-06-03T07:55:56","modified_gmt":"2022-06-02T22:55:56","slug":"post-5937","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=5937","title":{"rendered":"GAS\u306e\u5c0f\u6570\u3092\u56db\u6368\u4e94\u5165\u3057\u3066\u6574\u6570\u306b\u3059\u308b\u65b9\u6cd5\uff01\u8ca0\u306e\u6570\u306e\u5834\u5408\u3082\u89e3\u8aac(round\u30e1\u30bd\u30c3\u30c9)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Google Apps Script(GAS)\u3067\u6570\u5024\u51e6\u7406\u3092\u884c\u3046\u5834\u5408\u306b\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u3092\u56db\u6368\u4e94\u5165\u306b\u3057\u3066\u6574\u6570\u306b\u5909\u63db\u3057\u305f\u3044\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u3053\u3067\u3001GAS\u306eMath.round()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u5c0f\u6570\u3092\u6574\u6570\u306b\u3057\u305f\u308a\u3001\u6574\u6570\u306e\u7279\u5b9a\u6841\u3092\u56db\u6368\u4e94\u5165\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Google Apps Script(GAS)\u3067\u6570\u5024\u3092\u56db\u6368\u4e94\u5165\u3059\u308b\u65b9\u6cd5\uff01\u6574\u6570\u306e\u7279\u5b9a\u6841\u3067\u56db\u6368\u4e94\u5165\u3059\u308b\u65b9\u6cd5\u3082\u7d39\u4ecb\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/wFhp-Pftc0A?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">GAS\u3067\u5c0f\u6570\u3092\u56db\u6368\u4e94\u5165\u3057\u3066\u6574\u6570\u5316\u3057\u305f\u3044<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Google Apps Script(GAS)\u3067\u3055\u307e\u3056\u307e\u306a\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b\u4e2d\u3067\u3001\u6570\u5024\u8a08\u7b97\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u305f\u308a\u3001API\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u30ec\u30dd\u30fc\u30c8\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u3046\u3057\u3066GAS\u3067\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u3092\u6570\u5024\u8a08\u7b97\u3057\u3066\u3001\u7d50\u679c\u3092\u51fa\u529b\u3059\u308b\u969b\u306b\u5c0f\u6570\u3092\u56db\u6368\u4e94\u5165\u3057\u3066\u6574\u6570\u306b\u5909\u63db\u3057\u305f\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c0f\u6570\u306e\u307e\u307e\u3067\u306f\u4f55\u5341\u6841\u3068\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3082\u3042\u308a\u3001\u898b\u3065\u3089\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u5e38\u3067\u78ba\u8a8d\u3059\u308b\u6570\u5024\u304c\u6574\u6570\u3067\u3042\u308b\u5834\u5408\u306b\u306f\u3001\u5c0f\u6570\u306e\u307e\u307e\u3088\u308a\u3082\u30c7\u30fc\u30bf\u306e\u8996\u8a8d\u6027\u304c\u9ad8\u307e\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u56db\u6368\u4e94\u5165\u3059\u308bround\u30e1\u30bd\u30c3\u30c9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c0f\u6570\u3092\u56db\u6368\u4e94\u5165\u3057\u3066\u6574\u6570\u306b\u3059\u308b\u306b\u306f\u3001Google Apps Script(GAS)\u306e\u5834\u5408\u3001Math\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Math\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u306f\u6570\u5b66\u7684\u306a\u5b9a\u6570\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u3001\u6570\u5024\u8a08\u7b97\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u306e\u4e2d\u304b\u3089\u3001round\u30e1\u30bd\u30c3\u30c9\u3092\u7528\u3044\u308b\u3068\u3001GAS\u306e\u6570\u5024\u3092\u56db\u6368\u4e94\u5165\u3067\u6574\u6570\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em><strong>Math.round(&#8216;\u56db\u6368\u4e94\u5165\u3057\u305f\u3044\u6570\u5024&#8217;)<\/strong><\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">round\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306b\u56db\u6368\u4e94\u5165\u3057\u305f\u3044\u6570\u5024\u3001\u307e\u305f\u306f\u6570\u5024\u304c\u683c\u7d0d\u3055\u308c\u305f\u5909\u6570\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u56db\u6368\u4e94\u5165\u3057\u305f\u6574\u6570\u304c\u623b\u308a\u5024\u3068\u3057\u3066\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">round\u30e1\u30bd\u30c3\u30c9\u3067\u56db\u6368\u4e94\u5165\u3059\u308bGAS\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u969b\u306bMath.round()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u5c0f\u6570\u3092\u56db\u6368\u4e94\u5165\u3057\u3066\u6574\u6570\u306b\u5909\u63db\u3059\u308bGoogle Apps Script(GAS)\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3064\u306e\u5c0f\u6570\u306b\u5bfe\u3057\u3066\u56db\u6368\u4e94\u5165\u3092\u884c\u3044\u3001\u5207\u308a\u6368\u3066\u3068\u5207\u308a\u4e0a\u3052\u306e\u7d50\u679c\u304c\u51fa\u529b\u3055\u308c\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function myFunction() {\n  \/\/\u56db\u6368\u4e94\u5165\u3057\u305f\u3044\u6570\u5024\u3092\u5b9a\u7fa9\n  let num1 = 3.45;\n  let num2 = 3.5;\n  \/\/\u5b9a\u7fa9\u76f4\u5f8c\u306e\u6570\u5024\u3092\u30ed\u30b0\u51fa\u529b\n  console.log('num1=' + num1 + ', num2=' + num2);\n  \/\/round\u30e1\u30bd\u30c3\u30c9\u3067\u305d\u308c\u305e\u308c\u306e\u6570\u5024\u3092\u56db\u6368\u4e94\u5165\n  num1 = Math.round(num1);\n  num2 = Math.round(num2);\n  \/\/\u56db\u6368\u4e94\u5165\u3057\u305f\u6570\u5024\u3092\u30ed\u30b0\u51fa\u529b\n  console.log('num1=' + num1 + ', num2=' + num2);\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u56db\u6368\u4e94\u5165\u3057\u305f\u3044\u5c0f\u6570\u3092\u5909\u6570\u3068\u3057\u3066\u5b9a\u7fa9\u3057\u3001\u305d\u306e\u5f8c\u3001Math.round()\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306b\u3057\u3066\u56db\u6368\u4e94\u5165\u3057\u305f\u7d50\u679c\u3092\u30ed\u30b0\u51fa\u529b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"613\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_001.jpg\" alt=\"Google Apps Script(GAS)\u3067Math.round\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u5c0f\u6570\u3092\u56db\u6368\u4e94\u5165\u3057\u3066\u6574\u6570\u306b\u5909\u63db\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" class=\"wp-image-5940\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_001.jpg 1200w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_001-300x153.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_001-1024x523.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_001-768x392.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_001-530x271.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_001-565x289.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_001-710x363.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_001-725x370.jpg 725w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">GAS\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u30013.45\u21923\u30013.5\u21924\u3068\u60f3\u5b9a\u901a\u308a\u306b\u56db\u6368\u4e94\u5165\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6574\u6570\u306e\u3042\u308b\u6841\u3067\u56db\u6368\u4e94\u5165\u3057\u305f\u3044\u5834\u5408\u306f\uff1f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u524d\u8ff0\u3057\u305fGoogle Apps Script(GAS)\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001\u5c0f\u6570\u3092\u56db\u6368\u4e94\u5165\u3057\u3066\u6574\u6570\u306b\u3059\u308b\u3082\u306e\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3067\u306f\u3001\u6574\u6570\u306e\u7279\u5b9a\u6841\u3067\u56db\u6368\u4e94\u5165\u3059\u308b\u306b\u306f\u3069\u3046\u3057\u305f\u3089\u3044\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5148\u7a0b\u306eround\u30e1\u30bd\u30c3\u30c9\u306b\u6574\u6570\u3092\u5165\u529b\u3057\u3066\u3082\u3001\u540c\u3058\u6574\u6570\u304c\u623b\u308a\u5024\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6574\u6570\u3092n\u6841\u76ee\u3067\u56db\u6368\u4e94\u5165\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3092\u5b9f\u65bd\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u6570\u5024\u309210\u306en\u4e57\u3067\u5272\u308a\u7b97<\/li><li>round\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306b\u6307\u5b9a\u3057\u3066\u5b9f\u884c<\/li><li>\u56db\u6368\u4e94\u5165\u7d50\u679c\u306b10\u306en\u4e57\u3092\u639b\u3051\u7b97<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u3048\u3070\u30011245\u3068\u3044\u3046\u6570\u5b57\u30922\u6841\u76ee\u3067\u56db\u6368\u4e94\u5165\u3057\u305f\u3044\u5834\u5408\u306f\u3001<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1245\u00f7100=12.45\u3001Math.round(12.45)=12\u300112\u00d7100=1200<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GAS\u306e\u5148\u7a0b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4e0b\u8a18\u306e\u3088\u3046\u306b\u4fee\u6b63\u3059\u308b\u3068\u3001\u6574\u6570\u306en\u6841\u76ee\u306e\u56db\u6368\u4e94\u5165\u3082\u5b9f\u88c5\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function myFunction() {\n  \/\/\u56db\u6368\u4e94\u5165\u3057\u305f\u3044\u6574\u6570\u3092\u5b9a\u7fa9\n  let num = 1245;\n  \/\/\u5b9a\u7fa9\u76f4\u5f8c\u306e\u6570\u5024\u3092\u30ed\u30b0\u51fa\u529b\n  console.log('num=' + num);\n  \/\/10^2=100\u3067\u9664\u7b97\u3057round\u3067\u56db\u6368\u4e94\u5165\u5f8c100\u3067\u4e57\u7b97\n  num = Math.round(num\/100)*100;\n  \/\/\u56db\u6368\u4e94\u5165\u3057\u305f\u6570\u5024\u3092\u30ed\u30b0\u51fa\u529b\n  console.log('num=' + num);\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"409\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_002.jpg\" alt=\"Google Apps Script(GAS)\u3067Math.round\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u6574\u6570\u3092\u7279\u5b9a\u306e\u6841\u3067\u56db\u6368\u4e94\u5165\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" class=\"wp-image-5941\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_002.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_002-300x153.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_002-768x393.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_002-530x271.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_002-565x289.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_002-710x363.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_002-725x371.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u30ed\u30b0\u3067\u3082\u3001\u4e8b\u524d\u306e\u56db\u6368\u4e94\u5165\u306e\u8a08\u7b97\u3069\u304a\u308a\u306b\u6574\u6570\u306e2\u6841\u76ee\u3092\u56db\u6368\u4e94\u5165\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8ca0\u306e\u6570\u3092round\u3067\u56db\u6368\u4e94\u5165\u3059\u308b\u3068\u3069\u3046\u306a\u308b\uff1f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u307e\u3067\u56db\u6368\u4e94\u5165\u3057\u3066\u304d\u305f\u306e\u306f\u30d7\u30e9\u30b9\u306e\u6570\u5024\u3067\u3042\u308b\u6b63\u306e\u6570\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3067\u306f\u3001\u30de\u30a4\u30ca\u30b9\u3067\u3042\u308b\u8ca0\u306e\u6570\u3092Google Apps Script(GAS)\u306eround\u30e1\u30bd\u30c3\u30c9\u3067\u56db\u6368\u4e94\u5165\u3059\u308b\u3068\u3069\u3046\u306a\u308b\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u524d\u8ff0\u3057\u305fGAS\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u5909\u6570\u306e\u6570\u5024\u3092\u8ca0\u306e\u6570\u306b\u5909\u66f4\u3057\u3066\u3001\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function myFunction() {\n  \/\/\u56db\u6368\u4e94\u5165\u3057\u305f\u3044\u6570\u5024\u3092\u5b9a\u7fa9\n  let num1 = -3.45;\n  let num2 = -3.5;\n  let num3 = -3.51;\n  \/\/\u5b9a\u7fa9\u76f4\u5f8c\u306e\u6570\u5024\u3092\u30ed\u30b0\u51fa\u529b\n  console.log('num1=' + num1 + ', num2=' + num2 + ', num3=' + num3);\n  \/\/round\u30e1\u30bd\u30c3\u30c9\u3067\u305d\u308c\u305e\u308c\u306e\u6570\u5024\u3092\u56db\u6368\u4e94\u5165\n  num1 = Math.round(num1);\n  num2 = Math.round(num2);\n  num3 = Math.round(num3);\n  \/\/\u56db\u6368\u4e94\u5165\u3057\u305f\u6570\u5024\u3092\u30ed\u30b0\u51fa\u529b\n  console.log('num1=' + num1 + ', num2=' + num2 + ', num3=' + num3);\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"408\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_003.jpg\" alt=\"Google Apps Script(GAS)\u3067Math.round\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u8ca0\u306e\u6570\u306e\u5c0f\u6570\u3092\u56db\u6368\u4e94\u5165\u3057\u3066\u6574\u6570\u306b\u5909\u63db\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u5207\u308a\u6368\u3066\u30fb\u5207\u308a\u4e0a\u3052\u306e\u6ce8\u610f\u70b9\" class=\"wp-image-5942\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_003.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_003-300x153.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_003-768x392.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_003-530x270.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_003-565x288.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_003-710x362.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/05\/20220529_auto_003-725x370.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">3\u3064\u306e\u8ca0\u306e\u6570\u3092Math.round\u30e1\u30bd\u30c3\u30c9\u3067\u56db\u6368\u4e94\u5165\u3057\u3066\u3044\u307e\u3059\u304c\u3001-3.5\u304c\u5207\u308a\u6368\u3066\u3067-3\u306b\u306a\u308a\u3001\u4e00\u65b9\u3001-3.51\u306f-4\u3068\u5207\u308a\u4e0a\u3052\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u306f\u3001\u8ca0\u306e\u6570\u306e\u6d6e\u52d5\u5c0f\u6570\u70b9\u306e\u8aa4\u5dee\u304c\u5f71\u97ff\u3057\u3066\u3044\u308b\u306e\u304c\u539f\u56e0\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u3048\u3070\u3001-3.5000001\u306e\u5834\u5408\u306f\u3001\u5207\u308a\u4e0a\u3052\u306e-4\u3067\u3059\u304c\u3001-3.5\u306f\u8aa4\u5dee\u306b\u3088\u3063\u3066\u5b9f\u8cea-3.5\u672a\u6e80\u3068\u3057\u3066\u56db\u6368\u3055\u308c\u3066\u3057\u307e\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8ca0\u306e\u6570\u3067\u56db\u6368\u4e94\u5165\u3092\u884c\u3046\u5834\u5408\u306f\u3001\u6d6e\u52d5\u5c0f\u6570\u70b9\u306e\u8aa4\u5dee\u306b\u3088\u3063\u3066\u30015\u4ed8\u8fd1\u306e\u6570\u5b57\u3067\u60f3\u5b9a\u3057\u306a\u3044\u6319\u52d5\u306b\u306a\u308b\u3053\u3068\u3092\u7559\u610f\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081\u30fb\u7d42\u308f\u308a\u306b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u56de\u3001Google Apps Script(GAS)\u3067\u5c0f\u6570\u306e\u6570\u5024\u3092\u56db\u6368\u4e94\u5165\u3057\u3066\u6574\u6570\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GAS\u3067\u306fMath\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eround\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u56db\u6368\u4e94\u5165\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6574\u6570\u3067\u7279\u5b9a\u6841\u3067\u56db\u6368\u4e94\u5165\u3057\u305f\u3044\u5834\u5408\u306f\u300110\u306en\u4e57\u3067\u9664\u7b97(\u5272\u308a\u7b97)\u3057\u305f\u6570\u5024\u3092Math.round\u30e1\u30bd\u30c3\u30c9\u3067\u56db\u6368\u4e94\u5165\u3057\u3001\u518d\u5ea610\u306en\u4e57\u3092\u4e57\u7b97(\u639b\u3051\u7b97)\u3059\u308b\u3053\u3068\u3067\u8a08\u7b97\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GAS\u3067\u6570\u5024\u8a08\u7b97\u3057\u305f\u5c0f\u6570\u3092\u56db\u6368\u4e94\u5165\u3057\u3066\u6574\u6570\u306b\u3059\u308b\u969b\u306f\u3001round\u30e1\u30bd\u30c3\u30c9\u3092\u6d3b\u7528\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Apps Script(GAS)\u3067\u6570\u5024\u51e6\u7406\u3092\u884c\u3046\u5834\u5408\u306b\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u3092\u56db\u6368\u4e94\u5165\u306b\u3057\u3066\u6574\u6570\u306b\u5909\u63db\u3057\u305f\u3044\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002 \u305d\u3053\u3067\u3001GAS\u306eMath.round()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u5c0f\u6570\u3092\u6574\u6570\u306b\u3057\u305f\u308a\u3001\u6574\u6570\u306e\u7279\u5b9a\u6841 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5940,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[14,962,961,960],"class_list":["post-5937","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gas","tag-gas","tag-round","tag-961","tag-960"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5937","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5937"}],"version-history":[{"count":6,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5937\/revisions"}],"predecessor-version":[{"id":5953,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5937\/revisions\/5953"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/5940"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5937"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5937"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}