...

Text file src/github.com/noirbizarre/gonja/testData/filters/round.tpl

Documentation: github.com/noirbizarre/gonja/testData/filters

     1# precision 0
     2{{ 42.55|round }}
     3{{ 42.55|round(0, 'ceil') }}
     4{{ 42.55|round(0, 'floor') }}
     5{{ 42.45|round }}
     6{{ 42.45|round(0, 'ceil') }}
     7{{ 42.45|round(0, 'floor') }}
     8# precision 1
     9{{ 42.55|round(1) }}
    10{{ 42.55|round(1, 'ceil') }}
    11{{ 42.55|round(1, 'floor') }}
    12{{ 42.54|round(1) }}
    13{{ 42.54|round(1, 'ceil') }}
    14{{ 42.54|round(1, 'floor') }}

View as plain text