FME Transformers: 2024.2

Categories
Calculated Values
Database
Strings
Related Transformers
CoordinateRounder
DateTimeRounder
RasterCellValueRounder

AttributeRounder

Rounds off attributes with numeric values to the specified number of decimal places. Rounding may be nearest, up, or down.

Jump to Configuration

Typical Uses

  • Rounding off numeric attribute values for presentation or consistency.

How does it work?

The AttributeRounder accepts any feature. It rounds the selected attribute(s) to the specified number of decimal places, which may be a fixed integer, or set to an attribute or parameter value.

The newly rounded values replace the original values, and all features are output.

Non-numeric values will be passed through unaltered. If rounding is attempted with Decimal Places set to a non-integer value, the features will be Rejected.

Negative Decimal Place integer values may be used to perform rounding to the left of the decimal, rounding to 10s, 100s, 1000s, and so forth.

Examples

Configuration

Input Ports

Output Ports

Parameters

Editing Transformer Parameters

Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.

For more information, see Transformer Parameter Menu Options.

Reference

Processing Behavior

Feature-Based

Feature Holding

No

Dependencies  
Aliases  
History  

FME Community

The FME Community has a wealth of FME knowledge with over 20,000 active members worldwide. Get help with FME, share knowledge, and connect with users globally.

Search for all results about the AttributeRounder on the FME Community.

 

Examples may contain information licensed under the Open Government Licence – Vancouver, Open Government Licence - British Columbia, and/or Open Government Licence – Canada.