Casting error string to float



hi there,

i'm trying to cast a value string to float, but the function float return 0.0 :frowning:

{% set my_var = "10.8" %}
{{my_var | float }}

somewhere can i help me, please !!


Hi @Jesus_Garcia.

I'm not able to reproduce this issue on my end. Can you give me a link to the page(s) you're working on?