logo
  • 教程列表
  • SO官方文檔
  • 運算子
    • 比較運算子
    • 算術運算子
    • 分配運算子
    • 重定向運算子
    • 混合運算元型別左運算元的型別決定了行為
    • 邏輯運算子
    • 字串操作運算子
  1. StackOverflow 文件
  2. PowerShell 教程
  3. 運算子
  4. 算術運算子

算術運算子

Created: November-22, 2018

1 + 2      # Addition
1 - 2      # Subtraction
-1         # Set negative value
1 * 2      # Multiplication
1 / 2      # Division
1 % 2      # Modulus
100 -shl 2 # Bitwise Shift-left
100 -shr 1 # Bitwise Shift-right
  • 分配運算子
  • 比較運算子

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明