Skip to main content
Solved

Rounder values


mr_fme
Enthusiast
Forum|alt.badge.img+7

hi,

 

how to round values, for example: 5.1 = 6, 7.8 = 8 and so on...

 

Thank´s

Best answer by geomancer

Use an AttributeRounder, with parameters Decimal Places: 0, Round-off Direction: Up.

 AttributeRounder

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

3 replies

geomancer
Evangelist
Forum|alt.badge.img+47
  • Evangelist
  • Best Answer
  • May 24, 2023

Use an AttributeRounder, with parameters Decimal Places: 0, Round-off Direction: Up.

 AttributeRounder


mr_fme
Enthusiast
Forum|alt.badge.img+7
  • Author
  • Enthusiast
  • May 24, 2023

Thank´s


david_r
Evangelist
  • May 25, 2023

You could also use the following function embedded into e.g. an AttributeManager:

@ceil(@Value(my_attribute_to_round_up))

@ceil() is documented here: 

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/!Transformer_Parameters/math_functions.htm


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