Home

Common Mathematical Operators Used in Programming

|
Updated:  
2016-03-26 21:25:42
|
From The Book:  
No items found.
HTML & CSS Essentials For Dummies
Explore Book
Buy On Amazon

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 ^

About This Article

This article is from the book: 

No items found.

About the book author:

Wallace Wang specializes in making complex topics understandable. His assorted For Dummies tech books have sold nearly half a million copies. He has a master’s degree in computer science along with side hustles in stand-up comedy and screenwriting because life is too short to focus on just one thing.