Casting error string to float

contacts

#1

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 !!


#2

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?