Question

How to convert float decimal field to integer

  • 7 April 2023
  • 2 replies
  • 78 views

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? 


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

Userlevel 7
Badge +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

Userlevel 7
Badge +14

@J-zap 

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

Split by .

Keep the first segment.