AttributeRounder
Rounds off attributes to the specified number of decimal places.
Input Ports
The feature type that contains the attributes you want to round.
Output Ports
All processed features are output through this port.
Parameters
Select the source attributes to round.
Enter a number or take the value of a feature attribute by selecting the attribute name from the pull-down list.
If the decimal places value is a negative integer then the integral part of the number will be rounded. For example, if the number is 12345.1234 and the decimal places value is -2, then the rounded value will be 12300.0.
If the number to be rounded is a decimal value, and the decimal places value is not 0, then the rounded number will be a decimal value, possibly ending with .0. When the decimal places value is 0, the rounded number will always be an integer.
This parameter controls how the rounding will take place.
- nearest: the number is rounded up or down to nearest value
- up: the number will always be rounded up
- down: the number will always be rounded down
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.
Transformer Categories
Search FME Knowledge Center
Search for samples and information about this transformer on the FME Knowledge Center.