Skip to main content
Solved

Simple arithmatic problem

  • July 11, 2025
  • 3 replies
  • 71 views

bkgg
Contributor
Forum|alt.badge.img+6

Hey guys,

 

So I ran into a problem I shouldn't have. For my workspace I'm trying to subtract two integers from one another. The problem that I'm facing is that the arithmatic expression is not giving me any usable data. This is also the case when slightly change the expression. Below is the most recent attempt.

 

Can anybody point out how I might be able to make this work?

I have performed similar expressions in older versions of FME with no problems whatsoeverI I'm currently running FME 2024.2.4.0. The data type is originally Real64 but I converted it to Int32.

 

Any help would appreciated.

 

Best answer by hkingsbury

If you could even share a subset of data (in the original format) that would be helpful

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.

3 replies

takashi
Celebrity
  • July 11, 2025

Hi ​@bkgg ,

I think the expression should work fine. In order to understand the situation correctly, clarify these questions:

  • What parameter in what transformer have you set the expression to?  
  • What values do "area_original" and "area_updated" store actually?
  • How have you converted the data type of those attribute values from Real64 to Int32?
  • What result does the expression return - <null> or a wrong value?
  • Can you post screenshots illustrating the answers to above questions too? 
     

hkingsbury
Celebrity
Forum|alt.badge.img+64
  • Celebrity
  • Best Answer
  • July 13, 2025

If you could even share a subset of data (in the original format) that would be helpful


bkgg
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • July 14, 2025

If you could even share a subset of data (in the original format) that would be helpful

This provided me with the answer funny enough. As I was preparing the data for you guys, I realized that I was trying to compare the data from two different rows on two different columns! 🤦

This is because they are from two different features. After adding the area value from one feature onto the other it worked perfectly.

Now I just need to find a way to integrate this in my workspace. But I'm sure I'll figure that one out.

 

Thank you Hkingsbury and Takashi!