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

symbol_dash (-)

  • subtraction operator

    • Note: Support for the − character (Unicode 8722) was added in 1.67

    • Examples:

       set total to originalBalance - withdrawalAmount
    • Synonyms: minus

    • Related: +, *, /

  • unary negation operator

    • Examples:

       put -x into inverse
    • Synonyms: negative

    • Related: +

  • used in numbers expressed in scientific notation for negative exponents

    • Examples:

       set featherWeight to 5e-6 grams
  • used as a hyphen in certain words

    • used in numbers expressed in words (thirty-four)

      • Examples:

         set waitingPeriod to seventy-two hours
    • used in numeric data types (8-bit integer)

      • Examples:

         read from socket "dataport" for 3 16-bit integers