Skip to main content
Question

How to convert float decimal field to integer


I’m using a catch webhook trigger and one of the fields is currently a float / decimal data type. I need to convert it to an integer, or text that has the “.00” stripped out of it, to pass it into google analytics 3 event value field.  

It seems like the formatter should be able to do this but I cannot find an option in there? Is there any other way of doing this? 

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Troy Tessalone
Forum|alt.badge.img+14

Hi @J-zap 

Good question.

If you are trying to use a Zap Code step, try asking ChatGPT for help with configuring the code: https://chat.openai.com


Troy Tessalone
Forum|alt.badge.img+14

@J-zap 

One trick might be to use Formatter > Text > Split.

Split by .

Keep the first segment.