メインコンテンツまでスキップ
バージョン:25.2

abs, as a positive number, as a negative number

  • Math Function
    • abs
      • Returns the absolute value of a number. The absolute value is the magnitude of the number, regardless of its sign (positive or negative). In other words, the abs function returns the value as a positive number.
      • Examples:
        put abs(12) --> 12

        put abs of -12 --> 12
    • as a positive number, as a negative number
      • new in 2.05
      • Examples:
        put -12 as a positive number --> 12

        put 13 as a negative number --> -13