...

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

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

     1{{ "foobar"|float }}
     2{{ nil|float }}
     3{{ "5.5"|float }}
     4{{ 5|float }}
     5{{ "5.6"|int|float }}
     6{{ -100|float }}
     7{% if 5.5 == 5.500000 %}5.5 is 5.500000{% endif %}
     8{% if 5.5 != 5.500001 %}5.5 is not 5.500001{% endif %}

View as plain text