abs
Entity | Value |
---|---|
Attribute(s) | style |
Type | value |
Relation | productlist, moreinfo, orderprocess |
Multiple functions can be used within a myshop-calculate extension. One of those functions is abs(number). With this function the absolute value of a number can be calculated.
Calculate functions can only be used within a myshop-calculate extension.
Parameters
- number – Required
The number to get the absolute value from.
Example
abs(3.14) // will return 3.14
abs(-3.14) // will return 3.14
See also
The following extensions may also be interesting if you plan to use this extension:
Post your comment on this topic.