[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparing int and float fails without explicit cast #305

Open
ashtonian opened this issue Jul 11, 2022 · 0 comments
Open

Comparing int and float fails without explicit cast #305

ashtonian opened this issue Jul 11, 2022 · 0 comments

Comments

@ashtonian
Copy link

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 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants