- 1 から 絶対値である 1 を取得したい
Math.abs(数値) で取得できる
コード.gs
function myFunction() { var num = -1; var absolute_value = Math.abs(num); Logger.log(absolute_value); } |
意訳この機能がやること 対象の数値 絶対値を取得して ログに出力する |
参考
Math.abs()
I share this blog with my thoughts and creations from my daily programming, knowledge, and technology updates.
Introduction Regular expressions are a powerful tool that can be used to extract data from text. In Google Sheets, regular expressions ca...