$ZABS (ObjectScript) Contents 構文 概要 引数 例 関連項目 指定した引数の絶対値を返します。 構文 $ZABS(n) 引数 引数 説明 n 任意の数字 概要 $ZABS は、n の絶対値を返します。 引数 n 数値として評価される式。式は評価され、結果を正の値に変換します。複数のプラス記号やマイナス記号を使用できます。先頭のゼロや末尾のゼロは削除されます。非数値文字列は 0 として評価されます。混合数値文字列および非数値文字列の評価の詳細は、"数値としての文字列" を参照してください。 例 以下の例は、ユーザが指定された数の絶対値を返します。 READ "Input a number: ",num SET abs=$ZABS(num) WRITE "The absolute value of ",num," is ",abs 関連項目 演算子 Thanks for your feedback!Need to tell us more? Click here or use the Feedback button. Is this page helpful? Please select a reason: Easy to understand Well organized Found what I was looking for Enjoying the new design! Other Submit Cancel Please select a reason: Hard to understand Content displayed poorly Didn't find what I needed I prefer the old design better Other Submit Cancel Contents 構文 概要 引数 例 関連項目 FeedbackOpens in a new tab