Skip to main content
Solved

Simple arithmatic problem


bkgg
Contributor
Forum|alt.badge.img+6
  • Contributor

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

View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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
Evangelist
  • 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+59
  • 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
hkingsbury wrote:

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!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings