APIs & Integrations

Jesus_Garcia
Member

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

0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Casting error string to float

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?

0 Upvotes