Skip to main content

Hi, I would like to round a elevation value to the nearest even number. Is there a way to do this, perhaps using AttributeRounder or CoordinateRounder?

I am using FME Desktop 2016.

Thanks

Does the elevation value have decimal places?

 

 


Does the elevation value have decimal places?

 

 

Hi Takashi, Yes it does have decimal places. Thanks

 


If you use the expression @round(@Value(attr)/2)*2 in an AttributeManager or AttributeCreator it should do the trick.


Oops, my question was stupid. I wanted to ask whether the resulting elevation should have decimal places, but "even" number is usually an integer. @redgeographics suggested the way to go.

 


Thanks guys, @redgeographicsanswer worked !

 


Reply