Solved

Rounder values

  • 24 May 2023
  • 3 replies
  • 5 views

Badge +6

hi,

 

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

 

Thank´s

icon

Best answer by geomancer 24 May 2023, 17:35

View original

3 replies

Userlevel 4
Badge +36

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

 AttributeRounder

Badge +6

Thank´s

Userlevel 4

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

Reply