Online Test Banks
Score higher
See Online Test Banks
eLearning
Learning anything is easy
Browse Online Courses
Mobile Apps
Learning on the go
Explore Mobile Apps
Dummies Store
Shop for books and more
Start Shopping

Common Mathematical Operators Used in Programming

Part of the Beginning Programming For Dummies Cheat Sheet

In computer programming, four basic ways are used to manipulate numbers: adding, subtracting, multiplying, and dividing. To perform a mathematical operation with two numbers (or two numbers represented by variables), use these symbols in your computer program:

Mathematical Operation Symbol to Use
Addition +
Subtraction -
Division / (forward slash)
Integer division \ (backward slash)
Modulo mod
Multiplication *
Exponentiation ^
  • Add a Comment
  • Print
  • Share
blog comments powered by Disqus

SERIES
Beginning Programming For Dummies Cheat Sheet

Advertisement

Inside Dummies.com

Dummies.com Sweepstakes

Win $500. Easy.