Skip to main content
Solved

Rounding the elements of a list

  • May 31, 2018
  • 3 replies
  • 47 views

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

itay
Supporter
Forum|alt.badge.img+18
  • 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+40
  • 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

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