An arithmetic operator is a mathematical function that takes numerical values as their operands and returns a single numerical value. The Blogger arithmetic operators are addition ,
+, subtraction
-, multiplication
*, division
/ and modulo
%. Also, plus operator + is a Concatenate operator that can joint two expressions.
Blogger Arithmetic Operator List and Syntax
Operator | Meaning | Default syntax |
+ | Addition | number + number |
- | Substraction | number - number |
* | Multiplication | number * number |
/ | Division | number / number |
% | Modulo | number % number |
The Arithmetic operator always return number as result. When used in Blogger expression, it only work for expression type number, as example
data:post.length this is because Arithmetic operation only accept number.
0 Comments: