Latest news, food, business, travel, sport, Tips and Tricks...

Blogger Arithmetic Operator

An arithmetic operator is a mathematical function that takes numerical values as their operands and return a single numerical value. The Blogger arithmetic operators are addition +, subtraction -, multiplication *, division / and modulo %. Also plus operator + is Concatenate operator that can joint two expression.

Blogger Arithmetic Operator List and Syntax

OperatorMeaningDefault syntax
+Additionnumber + number
-Substractionnumber - number
*Multiplicationnumber * number
/Divisionnumber / number
%Modulonumber % 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.

,

No comments:

Post a Comment