pongo2 icon indicating copy to clipboard operation
pongo2 copied to clipboard

Comparing int and float fails without explicit cast

Open ashtonian opened this issue 2 years ago • 0 comments

I think an int and float comparison should auto cast the int as a float. Workaround is to cast it with the pongo filters.

{{ 1 == 1.0 }} // false 
{{ 1 == 1.0|integer }} // true 
{{ 1|float == 1.0 }} // true 

ashtonian avatar Jul 11 '22 18:07 ashtonian