PHP Classes

File: libs/Twig/doc/filters/abs.rst

Recommend this page to a friend!
  Classes of william amed   Raptor 2   libs/Twig/doc/filters/abs.rst   Download  
File: libs/Twig/doc/filters/abs.rst
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 247 bytes
 

Contents

Class file image Download
``abs`` ======= The ``abs`` filter returns the absolute value. .. code-block:: jinja {# number = -5 #} {{ number|abs }} {# outputs 5 #} .. note:: Internally, Twig uses the PHP `abs`_ function. .. _`abs`: http://php.net/abs