Skip to main content
Best Answer

What is causing a difference in attribute handling with the AttributeManager (Arithmetic Editor)?

  • February 4, 2020
  • 2 replies
  • 17 views

Forum|alt.badge.img

Hello,

I noticed a difference in attribute handling in my FME workbench. I hope anyone can explain what is causing this.

I have the following data:

With the AttributeManager I want to convert the numbers from meters to millimeters (see below).

The outcome of the AttributeManger is:

Why is the bottom value of the first row different than the other two rows?

It is luckily not an obstructing issue in my workbench, because I solved it with the AttributeRounder. But I am curious how this happens, and what the options are to prevent this from happening.

Thanks in advance!

Best answer by redgeographics

It has to do with the underlying mathematic model (I believe that is Tcl), although I am not sure what the exact reason is.

What you can do to avoid it alltogether is wrap the multiplication in an int() function like this:

@int(@Value(bottom)*1000)
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+62
  • Celebrity
  • Best Answer
  • February 4, 2020

It has to do with the underlying mathematic model (I believe that is Tcl), although I am not sure what the exact reason is.

What you can do to avoid it alltogether is wrap the multiplication in an int() function like this:

@int(@Value(bottom)*1000)

Forum|alt.badge.img
  • Author
  • February 4, 2020

It has to do with the underlying mathematic model (I believe that is Tcl), although I am not sure what the exact reason is.

What you can do to avoid it alltogether is wrap the multiplication in an int() function like this:

@int(@Value(bottom)*1000)

Thank you for your quick reply!