• ♡ Sponsor

    round

    #Math

    Returns a rounded value of a variable as integer. This function doesn't expect any parameters.

    @{ variable | round }
    

    Related

    Template Language  ⁄
    Pipe — Template Language

    A pipe | allows for using the value of a variable to be the input value for a function. It is also possible to chain multiple functions together, so that the output of one function is used as input for the next one. Therefore a pipe can be used to modify the value of a variable ...

    Pipe  ⁄
    ceil — Pipe

    Returns the next highest integer value by rounding up a variable if necessary. This function doesn't expect any parameters.

    Pipe  ⁄
    floor — Pipe

    Returns the next lowest integer value by rounding down a variable if necessary. This function doesn't expect any parameters.

    • Automad
    • Developer Guide
    • Building Themes
    • Template Language
    • Pipe
    • round
    Discuss
    Packages
    Release Notes
    Support
    Terms of Use
      Become a Sponsor
      GitHub
      Twitter
      Facebook
      Instagram
      2013-2023 by Marc Anton Dahmen
    Released under the MIT license

    A faceless machine, creating one's portrait in the internet.
  • Automad
  • Getting Started
  • System
  • User Guide
  • Developer Guide
  • Headless Mode
  • Discuss
  • Packages
  • Developer Guide ←
  • Building Themes ←
  • Template Language ←
  • Pipe
  • ceil
  • dateFormat
  • def
  • escape
  • findFirstImage
  • findFirstParagraph
  • floor
  • markdown
  • match
  • replace
  • round
  • sanitize
  • shorten
  • stripEnd
  • stripStart
  • stripTags
  • strlen
  • strtolower
  • strtoupper
  • ucwords