Skip to main content
simply more productive

The Data Specialist

Thanks to our intuitive transformation designer, you can convert data effortlessly to a variety of formats without knowing how to program. It’s not only efficient, it’s also easy to use.
Flowheater Download

Division function [Number divided by Zero]

  • Andrew Wojciak
  • Topic Author
  • Offline
  • User
  • User
More
9 years 1 month ago #2358 by Andrew Wojciak
Division function [Number divided by Zero] was created by Andrew Wojciak
I am using a Division and this function is not calculating divisions by Zero correctly. For example: 10 / 0 = 10 (but should be "#DIV/O!" or something like this). Is it possible to have "#DIV/O!" when a number is divided by zero?
AW

Please Log in to join the conversation.

More
9 years 1 month ago #2359 by FlowHeater-Team
Replied by FlowHeater-Team on topic Division function [Number divided by Zero]
Hi Andrew,

Thanks for the suggestion. I’ve added this feature in a first Beta of Version 3.5.3. You can download and use this Version here: Download FlowHeaterBeta

Best wishes
Robert Stark

Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.

Please Log in to join the conversation.

  • Andrew Wojciak
  • Topic Author
  • Offline
  • User
  • User
More
9 years 1 month ago #2360 by Andrew Wojciak
Replied by Andrew Wojciak on topic Division function [Number divided by Zero]
I have updated to Beta Ver 3.5.3. but Division is showing the same issue. I have checked formating and I am dividing Integer/Integer = Decimal so should be fine. Any suggestions?
Thanks
AW

Please Log in to join the conversation.

More
9 years 1 month ago #2361 by FlowHeater-Team
Replied by FlowHeater-Team on topic Division function [Number divided by Zero]
I’ve attached the Definition which I have tried it and I get the result in the screenshot. Could you please try it also with this definition? If the result also the same please be sure that you’re using the right BETA version.


File Attachment:

File Name: division-by-zero.fhd
File Size:5 KB




Best wishes
Robert Stark

Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
Attachments:

Please Log in to join the conversation.

  • Andrew Wojciak
  • Topic Author
  • Offline
  • User
  • User
More
9 years 1 month ago #2362 by Andrew Wojciak
Replied by Andrew Wojciak on topic Division function [Number divided by Zero]
Hi Robert,
your division-by-zero.fhd file produces correct results in my FH too, but here is what I have noticed in my process which still does not produce correct results: 1/ All together I have 4 steps (.fhd-s) in my process 2/ in my step# 3 I am updating SQLite but some fields used in the next step as denominator remains NULL (that's OK - no data to populate) 3/ when I run my final step4 (.fhd with Division) warnings are produced: "The values (null) could not be converted into a number". So it seems Division is not working correctly when denominator is NULL.
Can you help?
Thank you.
AW

Please Log in to join the conversation.

More
9 years 1 month ago #2363 by FlowHeater-Team
Replied by FlowHeater-Team on topic Division function [Number divided by Zero]
Hi Andrew,

You need a short IF-THEN-ELSE condition the set the certain field in case of DBNULL (or isn’t a NUMBER) to zero. Please find attached a short example.

File Attachment:

File Name: isnumber-i...tion.fhd
File Size:8 KB

Best wishes
Robert Stark

Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
Attachments:

Please Log in to join the conversation.

Time to create page: 0.297 seconds

FlowHeater - The Data Specialist

Efficient data integration and transformation with FlowHeater – the perfect solution for a seamless transfer of your data.

Rechtliches

Support & Contact

Kontaktinformation

Telefon:0951 / 99339792 E-Mail:This email address is being protected from spambots. You need JavaScript enabled to view it.

Copyright © 2009-2024 by FlowHeater GmbH. All rights reserved.