Flutter Dart List of All Arithmetic Operators with Example Tutorial

Arithmetic operators are used to perform mathematical operations in Dart. As we all know every programming language has their own Arithmetic operators so on the Dart. There are basically 9 Arithmetic operators available in Dart language. In today’s tutorial we would discuss them all with a basic example so you’ll know how they works in Dart. So in this tutorial we would learn about Flutter Dart List of All Arithmetic Operators with Example Tutorial.

Contents in this project Flutter Dart List of All Arithmetic Operators with Example:

There are mainly 9 Arithmetic operators in dart but when we would learn about them, There’ll be 11 of them total. So below is the list of all arithmetic operators in Dart.

S.No. Operator Name
1 + Add (Plus)
2 Subtract (Minus)
3 * Multiply
4 / Divide
5 ~/ Divide Which returns result in Near Integer value
6 % Returns Remainder of Integer Division ( Modulo )
7 ++variable +1 (Increment variable before gets its value)
8 variable++ +1 (Increment variable after gets its value)
9 –variable -1 (Decrement variable before gets its value)
10 variable — -1 (Decrement variable after gets its value)
11 -expr Unary Minus(Negation)-Used to reverse sign of given expression

 

Example:

Output:

Flutter Dart List of All Arithmetic Operators with Example Tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *