1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 xen:calc documentation

Discussion in 'XenForo Questions and Support' started by RichardKYA, Mar 28, 2015.

  1. RichardKYA

    RichardKYA Well-Known Member

    Hello,

    I was looking for some documentation on xen:calc, but couldn't find anything.

    Is there any anywhere? If so, could someone point me to it please and thank you :)
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    These are the functions you can use with xen:calc
    • abs
    • ceil
    • floor
    • max
    • min
    • pow
    • round
     
    Coop1979 and Chris D like this.
  3. Chris D

    Chris D XenForo Developer Staff Member

    Not sure much documentation is required.

    It receives a calculation and returns the result of that calculation.

    Code:
    {xen:calc '6 + 6 / 3'}
    Returns: 4

    For more complex stuff, Brogan just beat me to that ;)
     
    Brogan likes this.
  4. RichardKYA

    RichardKYA Well-Known Member

    @Brogan @Chris D

    Thanks guys

    Yeah, 'documentation' might not have been the right word, but Brogan gave me the answer the I was looking for :)
     
    Chris D likes this.

Share This Page