javier.delolmo | 2022-02-14 14:28:10 UTC | #1
Hello, I want to set all the values of an array so that they are normalized to two decimal places, when it is only a field of type NUMBER I have no problems, I apply the function $math.roundTo(2, ${field}) , there is a way to do it this in each of the fields of an output variable of type ARRAY?
Thanks!
Jason_Mathison | 2022-02-16 07:17:45 UTC | #2
Hi Javier,
I haven't come up with a good way to do this in a data action yet. Is this data action being used by Architect? If so, you could loop through the array and use the round tool to accomplish what you want.
--Jason
javier.delolmo | 2022-02-16 07:17:43 UTC | #3
Hello Jason, thanks for the answer, right now we are doing this treatment in Architect, but we are making optimizations so that the flow is as clean as possible (and that the changes were easier and the troubleshooting faster) and we believed that this it was a good case to optimize. If there is no way to do it today in the data action with velocity there is no problem, leaving it in Architect. Regards.
system | 2022-03-19 07:17:46 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 13572