Jinja Compat Tests

Enabled engines

float filter

Template

{{ ""|float(0.5) }}

(error) v1.10.1

Invalid filter: 'float'

v2.8.0

0.5

(error) v3.0.6

(no output)

v2.5.0

0.5

(error) v1.4.2

Invalid filter "float".

(error) v1.24.2

Unknown "float" filter.

(error) v0.9.5

Unable to find filter float

Template

{{ 3.52|float }}

(error) v1.10.1

Invalid filter: 'float'

v2.8.0

3.52

v3.0.6

3.52

v2.5.0

3.52

(error) v1.4.2

Invalid filter "float".

(error) v1.24.2

Unknown "float" filter.

(error) v0.9.5

Unable to find filter float

Template

{{ ""|float }}

(error) v1.10.1

Invalid filter: 'float'

v2.8.0

0.0

(error) v3.0.6

(no output)

(error) v2.5.0

(no output)

(error) v1.4.2

Invalid filter "float".

(error) v1.24.2

Unknown "float" filter.

(error) v0.9.5

Unable to find filter float

Template

{{ 3|float }}

(error) v1.10.1

Invalid filter: 'float'

v2.8.0

3.0

v3.0.6

3

v2.5.0

3

(error) v1.4.2

Invalid filter "float".

(error) v1.24.2

Unknown "float" filter.

(error) v0.9.5

Unable to find filter float

Template

{{ "3.52"|float }}

(error) v1.10.1

Invalid filter: 'float'

v2.8.0

3.52

v3.0.6

3.52

v2.5.0

3.52

(error) v1.4.2

Invalid filter "float".

(error) v1.24.2

Unknown "float" filter.

(error) v0.9.5

Unable to find filter float