Skip to main content
Solved

Rounding the elements of a list


Forum|alt.badge.img

Hello,

 

I have a list of numbers and I wanna round all its elements to a precision.

 

How it can be done in FME ?

 

Thank you very much in advance.

Best answer by itay

Hi,

The easy way would be to explode the list (ListExploder) and round the values using the AttributeRounder and then recreating the list (ListBuilder).

Hope this helps.

View original
Did this help you find an answer to your question?

3 replies

itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • Best Answer
  • May 31, 2018

Hi,

The easy way would be to explode the list (ListExploder) and round the values using the AttributeRounder and then recreating the list (ListBuilder).

Hope this helps.


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • May 31, 2018
Itay gives the easiesy way, but consider voting on https://knowledge.safe.com/idea/24729/attribute-manipulation-on-lists.html (with a comment to add AttributeRounder)

 

 


Forum|alt.badge.img
itay wrote:

Hi,

The easy way would be to explode the list (ListExploder) and round the values using the AttributeRounder and then recreating the list (ListBuilder).

Hope this helps.

It worked

 

Thank you very much

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings