symbol_percentSign
-
percent operator
-
The percent operator can be used in two ways. When the % sign is used as part of an expression like x + y% or x - y% it is treated as an “add-on” or “discount” percentage expression. In that case x is multiplied by y% and the result is added to or subtracted from x to arrive at the value of the expression. Otherwise, when the % sign follows a numeric value or variable that value is divided by 100, becoming a percentage.
-
Synonyms: percent
-
Examples: +
put 100 + 3% —> 103
put four hundred minus ten percent —> 360
put 7% —> 0.07
-
Related: percent