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:

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment