{"id":5962,"date":"2022-06-04T21:36:00","date_gmt":"2022-06-04T12:36:00","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=5962"},"modified":"2022-06-04T21:34:16","modified_gmt":"2022-06-04T12:34:16","slug":"post-5962","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=5962","title":{"rendered":"GAS\u30672\u4e57\u3084\u5e73\u65b9\u6839\u3001\u7acb\u65b9\u6839\u306e\u3079\u304d\u4e57\u3092\u8a08\u7b97\u3059\u308b\u65b9\u6cd5(\u7d2f\u4e57\u6f14\u7b97\u5b50\u3068pow\u30e1\u30bd\u30c3\u30c9)"},"content":{"rendered":"\n<p>Google Apps Script(GAS)\u306e\u6570\u5024\u8a08\u7b97\u3067\u3001\u6570\u5b57\u306e2\u4e57\u30843\u4e57\u306a\u3069\u306e\u7d2f\u4e57(\u3079\u304d\u4e57)\u3092\u6c42\u3081\u305f\u3044\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3046\u3057\u305f\u30b1\u30fc\u30b9\u3067\u3001\u7d2f\u4e57\u6f14\u7b97\u5b50\u3084Math.pow\u30e1\u30bd\u30c3\u30c9\u306b\u3088\u308b\u3079\u304d\u4e57\u306e\u8a08\u7b97\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GAS\u3067\u7d2f\u4e57(\u3079\u304d\u4e57)\u306e\u8a08\u7b97<\/h2>\n\n\n\n<p>Google Apps Script(GAS)\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u6570\u5024\u51e6\u7406\u3057\u3066\u3044\u308b\u3068\u3001\u7d2f\u4e57\u3092\u8a08\u7b97\u3059\u308b\u6642\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001\u6b63\u65b9\u5f62\u306a\u3069\u306e\u9762\u7a4d\u3092\u8a08\u7b97\u3059\u308b\u969b\u306f\u3001\u4e00\u8fba\u306e\u9577\u3055\u30922\u4e57\u3057\u3001\u7acb\u65b9\u4f53\u306e\u5834\u5408\u306f3\u4e57\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u306a\u304a\u3001\u7d2f\u4e57\u3068\u3079\u304d\u4e57\u306f\u4f3c\u305f\u3088\u3046\u306a\u8868\u73fe\u3067\u3059\u304c\u3001\u6570\u5b66\u7684\u306b\u306f\u5b9a\u7fa9\u304c\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u7d2f\u4e57\u306f\u6307\u6570\u90e8\u5206\u304c\u81ea\u7136\u6570\u307e\u305f\u306f\u6574\u6570\u3067\u3042\u308b\u5834\u5408\u306b\u5bfe\u3057\u3001\u3079\u304d\u4e57\u306f\u6307\u6570\u90e8\u5206\u304c\u6574\u6570\u306b\u52a0\u3048\u3001\u5206\u6570\u306a\u3069\u306e\u5b9f\u6570\u3001\u8907\u7d20\u6570\u3082\u542b\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001\u3079\u304d\u4e57\u3068\u3044\u3046\u5927\u304d\u3044\u62ec\u308a\u306e\u4e2d\u306b\u3001\u7d2f\u4e57\u304c\u5305\u542b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2\u4e57\u306a\u3089\u639b\u3051\u7b97\u3067\u304d\u3066\u3082\u7d2f\u4e57\u6570\u304c\u5927\u304d\u3044\u3068\u5927\u5909<\/h2>\n\n\n\n<p>N\u00aa\u306e\u7d2f\u4e57\u306f\u3001N\u3092a\u56de\u639b\u3051\u7b97\u3059\u308b\u3053\u3068\u3067\u7b97\u51fa\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>N\u00b2\u3068\u3044\u3063\u305f2\u4e57\u306e\u5834\u5408\u306f\u3001Google Apps Script(GAS)\u3067\u3082N*N\u306e\u639b\u3051\u7b97\u3067\u8a08\u7b97\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>N\u00b3\u3068\u3044\u3063\u305f3\u4e57\u3067\u3082\u3001N*N*N\u3068\u3044\u3063\u305f\u8a08\u7b97\u5f0f\u3067\u305d\u3053\u307e\u3067\u8907\u96d1\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u7d2f\u4e57\u306e\u6570\u5024\u304c\u5927\u304d\u304f\u306a\u308b\u3068\u3001\u901a\u5e38\u306e\u7b97\u8853\u6f14\u7b97\u5b50\u306e\u300c*\u300d\u3060\u3051\u3067\u8868\u73fe\u3059\u308b\u3068\u3001\u5f0f\u304c\u9577\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"260\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_003.jpg\" alt=\"Google Apps Script(GAS)\u3067\u3079\u304d\u4e57\u3084\u7d2f\u4e57\u3092\u639b\u3051\u7b97\u306e\u6f14\u7b97\u5b50\u3067\u8868\u73fe\u3059\u308b\u3068\u3001\u30b3\u30fc\u30c9\u304c\u8aad\u307f\u3065\u3089\u304f\u306a\u308b\u30c7\u30e1\u30ea\u30c3\u30c8\" class=\"wp-image-5974\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_003.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_003-300x98.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_003-768x250.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_003-530x172.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_003-565x184.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_003-710x231.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_003-725x236.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u30c7\u30fc\u30bf\u5bb9\u91cf\u306a\u3069\u306eGB(\u30ae\u30ac\u30d0\u30a4\u30c8)\u306f\u30012\u309230\u4e57\u30d0\u30a4\u30c8\u306b\u306a\u308a\u3001\u6307\u6570\u90e8\u5206\u304c\u81a8\u5927\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3055\u3089\u306b\u3001\u3079\u304d\u4e57\u306b\u306f\u5358\u7d14\u306a\u639b\u3051\u7b97\u3067\u306f\u8868\u73fe\u304c\u96e3\u3057\u3044\u5e73\u65b9\u6839\u3084\u7acb\u65b9\u6839\u3082\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u3046\u3057\u305f\u5e73\u65b9\u6839\u306a\u3069\u306e\u3079\u304d\u4e57\u3067\u306f\u3001\u6307\u6570\u90e8\u5206\u304c\u6574\u6570\u4ee5\u5916\u306b\u5206\u6570\u3084\u7121\u7406\u6570\u306b\u306a\u308b\u306e\u3067\u3001\u901a\u5e38\u306e\u56db\u5247\u6f14\u7b97\u3067\u306f\u8868\u73fe\u304c\u56f0\u96e3\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GAS\u3067\u306e\u3079\u304d\u4e57\u306e2\u3064\u306e\u8a08\u7b97\u65b9\u6cd5<\/h2>\n\n\n\n<p>Google Apps Script(GAS)\u3067\u306f\u3001\u3079\u304d\u4e57(\u7d2f\u4e57)\u306a\u3069\u3092\u8a08\u7b97\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u4ee5\u4e0b\u306e2\u3064\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong><em>Math.pow()<\/em><\/strong>\u30e1\u30bd\u30c3\u30c9<\/li><li>\u7d2f\u4e57\u6f14\u7b97\u5b50(\u3079\u304d\u4e57\u6f14\u7b97\u5b50)<\/li><\/ol>\n\n\n\n<p>2\u4e57\u30843\u4e57\u3068\u3044\u3063\u305f\u7d2f\u4e57\u306e\u8a08\u7b97\u306b\u52a0\u3048\u3001\u5e73\u65b9\u6839\u3084\u7acb\u65b9\u6839\u306a\u3069\u306e\u3079\u304d\u4e57\u306e\u8a08\u7b97\u304c\u3069\u3061\u3089\u306e\u65b9\u6cd5\u3067\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>Math.pow\u30e1\u30bd\u30c3\u30c9\u3068\u7d2f\u4e57\u6f14\u7b97\u5b50\u306e\u305d\u308c\u305e\u308c\u306e\u8a08\u7b97\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Math.pow\u30e1\u30bd\u30c3\u30c9\u306b\u3088\u308b\u3079\u304d\u4e57\u8a08\u7b97<\/h2>\n\n\n\n<p>Google Apps Script(GAS)\u306e\u3079\u304d\u4e57\u8a08\u7b97\u306e1\u3064\u76ee\u306fMath.pow\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<p><em><strong>Math.pow(\u6570\u5024,\u6307\u6570)<\/strong><\/em><\/p>\n\n\n\n<p>pow\u30e1\u30bd\u30c3\u30c9\u306b\u306f2\u3064\u306e\u5f15\u6570\u8a2d\u5b9a\u304c\u5fc5\u9808\u306b\u306a\u3063\u3066\u3044\u3066\u3001<em>N\u00aa<\/em>\u3092\u8a08\u7b97\u3059\u308b\u5834\u5408\u3001<em>Math.pow(N,a)<\/em>\u3068\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u969b\u306bGAS\u3067Math.pow\u30e1\u30bd\u30c3\u30c9\u3067\u306e\u3079\u304d\u4e57\u8a08\u7b97\u3092\u30ed\u30b0\u51fa\u529b\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function calculatePower() {\n  \/\/\u3079\u304d\u4e57\u3059\u308b\u6570\u5024\u3092\u5b9a\u6570\u3068\u3057\u3066\u5b9a\u7fa9\n  const num =2;\n  \/\/\u3079\u304d\u4e57\u306e\u6307\u6570\u90e8\u5206\u3092\u5b9a\u6570\u3068\u3057\u3066\u5b9a\u7fa9\n  const index =4;\n  \/\/Math.pow\u95a2\u6570\u3092\u4f7f\u3063\u3066\u3079\u304d\u4e57\u306e\u8a08\u7b97\n  let power = Math.pow(num,index);\n  \/\/\u3079\u304d\u4e57(\u7d2f\u4e57)\u306e\u8a08\u7b97\u7d50\u679c\u3092\u51fa\u529b\n  console.log(power);\n}<\/code><\/pre>\n\n\n\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u30012\u306e4\u4e57\u304c\u8a08\u7b97\u3055\u308c\u3066\u300116\u304c\u5b9f\u884c\u30ed\u30b0\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"617\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_002.jpg\" alt=\"Google Apps Script(GAS)\u3067Math.pow\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u30662\u4e57\u30843\u4e57\u306e\u7d2f\u4e57\u3001\u5e73\u65b9\u6839\u3084\u7acb\u65b9\u6839\u306e\u3079\u304d\u4e57\u3092\u51fa\u529b\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" class=\"wp-image-5973\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_002.jpg 1200w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_002-300x154.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_002-1024x527.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_002-768x395.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_002-530x273.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_002-565x291.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_002-710x365.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_002-725x373.jpg 725w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p>Math.pow\u306e\u6307\u6570\u90e8\u5206\u306b0.5\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u5e73\u65b9\u6839\u30011\/3\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u7acb\u65b9\u6839\u306e\u3079\u304d\u4e57\u304c\u8a08\u7b97\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7d2f\u4e57\u6f14\u7b97\u5b50\u306b\u3088\u308b\u3079\u304d\u4e57\u8a08\u7b97<\/h2>\n\n\n\n<p>\u3082\u3046\uff11\u3064\u306eGoogle Apps Script(GAS)\u3067\u306e\u3079\u304d\u4e57\u3092\u8a08\u7b97\u3059\u308b\u65b9\u6cd5\u306f\u7d2f\u4e57\u6f14\u7b97\u5b50(\u3079\u304d\u4e57\u6f14\u7b97\u5b50)\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u7d2f\u4e57\u6f14\u7b97\u5b50\u306f\u300c\u30a2\u30b9\u30bf\u30ea\u30b9\u30af*\u300d\u30922\u3064\u4e26\u3079\u305f\u300c**\u300d\u3067\u8868\u73fe\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong><em>num ** index<\/em><\/strong><\/p>\n\n\n\n<p>\u3059\u308b\u3068\u3001Math.pow\u3068\u540c\u69d8\u306bnum\u306e\u6570\u5024\u3092index\u3067\u3079\u304d\u4e57\u3057\u305f\u8a08\u7b97\u7d50\u679c\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function calculatePower() {\n  \/\/\u3079\u304d\u4e57\u3059\u308b\u6570\u5024\u3092\u5b9a\u6570\u3068\u3057\u3066\u5b9a\u7fa9\n  const num =2;\n  \/\/\u3079\u304d\u4e57\u306e\u6307\u6570\u90e8\u5206\u3092\u5b9a\u6570\u3068\u3057\u3066\u5b9a\u7fa9\n  const index =4;\n  \/\/\u7d2f\u4e57\u6f14\u7b97\u5b50\u3092\u4f7f\u3063\u3066\u3079\u304d\u4e57\u306e\u8a08\u7b97\n  let power = num ** index;\n  \/\/\u3079\u304d\u4e57(\u7d2f\u4e57)\u306e\u8a08\u7b97\u7d50\u679c\u3092\u51fa\u529b\n  console.log(power);\n}<\/code><\/pre>\n\n\n\n<p>\u7d2f\u4e57\u6f14\u7b97\u5b50\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001Math.pow\u30e1\u30bd\u30c3\u30c9\u306e\u5834\u5408\u3068\u540c\u69d8\u306b\u30012\u306e4\u4e57\u304c\u8a08\u7b97\u3055\u308c\u306616\u304c\u30ed\u30b0\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"616\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_001.jpg\" alt=\"Google Apps Script(GAS)\u3067\u7d2f\u4e57\u6f14\u7b97\u5b50(\u3079\u304d\u4e57\u6f14\u7b97\u5b50)**\u3092\u4f7f\u3063\u30662\u4e57\u30843\u4e57\u306e\u7d2f\u4e57\u3001\u5e73\u65b9\u6839\u3084\u7acb\u65b9\u6839\u306e\u3079\u304d\u4e57\u3092\u51fa\u529b\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" class=\"wp-image-5972\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_001.jpg 1200w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_001-300x154.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_001-1024x526.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_001-768x394.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_001-530x272.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_001-565x290.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_001-710x364.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_001-725x372.jpg 725w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p>\u7d2f\u4e57\u6f14\u7b97\u5b50\u3068\u3044\u3046\u540d\u79f0\u3067\u3059\u304c\u3001\u3079\u304d\u4e57\u3082\u53ef\u80fd\u306a\u306e\u3067\u3001\u6574\u6570\u4ee5\u5916\u306e\u5c0f\u6570\u306a\u3069\u3082\u6307\u5b9a\u3057\u3066\u7b97\u51fa\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7d2f\u4e57\u6f14\u7b97\u5b50\u3068pow\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u5206\u3051\u306f\uff1f<\/h2>\n\n\n\n<p>Google Apps Script(GAS)\u3067\u306e\u7d2f\u4e57\u6f14\u7b97\u5b50\u3068pow\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u5206\u3051\u3067\u3059\u304c\u3001\u6a5f\u80fd\u7684\u306a\u90e8\u5206\u3067\u5dee\u7570\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u5927\u304d\u306a\u9055\u3044\u3068\u3057\u3066\u306f\u3001\u7d2f\u4e57\u6f14\u7b97\u5b50\u306fGAS\u306eV8\u30e9\u30f3\u30bf\u30a4\u30e0\u3092\u6709\u52b9\u5316\u3057\u305f\u6642\u3057\u304b\u5229\u7528\u3067\u304d\u306a\u3044\u70b9\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"410\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_004.jpg\" alt=\"\u7d2f\u4e57\u6f14\u7b97\u5b50(\u3079\u304d\u4e57\u6f14\u7b97\u5b50)\u306fES6\u304b\u3089\u63a1\u7528\u3055\u308c\u305f\u6a5f\u80fd\u306e\u305f\u3081\u3001Google Apps Script(GAS)\u3067\u5229\u7528\u3059\u308b\u306b\u306fV8\u30e9\u30f3\u30bf\u30a4\u30e0\u6709\u52b9\u304c\u5fc5\u9808\" class=\"wp-image-5975\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_004.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_004-300x154.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_004-768x394.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_004-530x272.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_004-565x290.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_004-710x364.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/06\/20220604_auto_004-725x372.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u7d2f\u4e57\u6f14\u7b97\u5b50\u306fGAS\u306e\u30d9\u30fc\u30b9\u3068\u306a\u3063\u3066\u3044\u308bJavascript\u306eES6\u304b\u3089\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001V8\u30e9\u30f3\u30bf\u30a4\u30e0\u3092\u7121\u52b9\u3057\u305f\u5834\u5408\u3001\u7d2f\u4e57\u6f14\u7b97\u5b50\u306f\u5229\u7528\u3067\u304d\u305a\u3001\u30b3\u30fc\u30c9\u306e\u4fdd\u5b58\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>V8\u30e9\u30f3\u30bf\u30a4\u30e0\u3092\u6709\u52b9\u5316\u306b\u3057\u3066\u3044\u306a\u3044\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3(Rhino\u30e9\u30f3\u30bf\u30a4\u30e0)\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306fMath.pow\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3001\u7d2f\u4e57\u6f14\u7b97\u5b50\u306e\u307b\u3046\u304c\u901a\u5e38\u306e\u7b97\u8853\u6f14\u7b97\u5b50\u3068\u540c\u3058\u3088\u3046\u306b\u30b7\u30f3\u30d7\u30eb\u306b\u8a18\u8ff0\u3067\u304d\u308b\u306e\u3067V8\u30e9\u30f3\u30bf\u30a4\u30e0\u3092\u5229\u7528\u3059\u308bGAS\u30b3\u30fc\u30c9\u3067\u306f\u7d2f\u4e57\u6f14\u7b97\u5b50\u304c\u30aa\u30b9\u30b9\u30e1\u3067\u3059\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>\u4eca\u56de\u3001Google Apps Script(GAS)\u30672\u4e57\u30843\u4e57\u306e\u7d2f\u4e57\u3001\u5e73\u65b9\u6839\u30fb\u7acb\u65b9\u6839\u306a\u3069\u306e\u3079\u304d\u4e57\u3092\u8a08\u7b97\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u6307\u6570\u90e8\u5206\u304c\u6574\u6570\u306e\u7d2f\u4e57\u3067\u3042\u308c\u3070\u3001\u901a\u5e38\u306e\u7b97\u8853\u6f14\u7b97\u5b50\u3067\u8a08\u7b97\u3067\u304d\u307e\u3059\u304c\u3001\u6307\u6570\u304c\u5927\u304d\u304f\u306a\u308b\u3068\u8a18\u8ff0\u91cf\u304c\u5897\u3048\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3046\u3057\u305f\u5834\u5408\u306bGAS\u3067\u306fMath.pow\u30e1\u30bd\u30c3\u30c9\u307e\u305f\u306f\u7d2f\u4e57\u6f14\u7b97\u5b50\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u8868\u73fe\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u7d2f\u4e57\u6f14\u7b97\u5b50\u306fV8\u30e9\u30f3\u30bf\u30a4\u30e0\u3067\u306e\u307f\u5229\u7528\u53ef\u80fd\u306a\u306e\u3067\u3001\u53e4\u3044Rhino\u30e9\u30f3\u30bf\u30a4\u30e0\u3067\u7a3c\u50cd\u3057\u3066\u3044\u308bGAS\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u3001Math.pow\u3057\u304b\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u7d2f\u4e57\u6f14\u7b97\u5b50\u306e\u307b\u3046\u304c\u30b7\u30f3\u30d7\u30eb\u306b\u8a08\u7b97\u304c\u3067\u304d\u3001\u6574\u6570\u4ee5\u5916\u306e\u3079\u304d\u4e57\u3082\u8a08\u7b97\u53ef\u80fd\u306a\u306e\u3067\u3001\u73fe\u5728\u4e3b\u6d41\u306eV8\u30e9\u30f3\u30bf\u30a4\u30e0\u306eGAS\u3067\u306f\u30aa\u30b9\u30b9\u30e1\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Apps Script(GAS)\u306e\u6570\u5024\u8a08\u7b97\u3067\u3001\u6570\u5b57\u306e2\u4e57\u30843\u4e57\u306a\u3069\u306e\u7d2f\u4e57(\u3079\u304d\u4e57)\u3092\u6c42\u3081\u305f\u3044\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002 \u305d\u3046\u3057\u305f\u30b1\u30fc\u30b9\u3067\u3001\u7d2f\u4e57\u6f14\u7b97\u5b50\u3084Math.pow\u30e1\u30bd\u30c3\u30c9\u306b\u3088\u308b\u3079\u304d\u4e57\u306e\u8a08\u7b97\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002 G [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5972,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[14,967,965,966,968],"class_list":["post-5962","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gas","tag-gas","tag-pow","tag-965","tag-966","tag-968"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5962","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=5962"}],"version-history":[{"count":7,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5962\/revisions"}],"predecessor-version":[{"id":5978,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5962\/revisions\/5978"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/5972"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}